From: Matt Armstrong Date: 2003-01-15T13:29:13+09:00 Subject: Re: ruby -e not printing to stdout Jim Freeze writes: > Ok, I found the source, (it doesn't appear to be Ruby's > fault) but it's not clear to me how to correct it. > I have wrapper csh script that calls exec > on ruby. Exec is supposed to redirect stdio. Since I get > the version to print it appears to be working for stderr, > but not for stdout. > > % -> ruby.wrap -e 'puts $:.join("\n")' > > -> ./ruby.wrap -v > ruby 1.7.3 (2002-12-04) [i386-freebsd4.6] > % -> cat ruby.wrap > #! /bin/csh -f > exec /home/jfreeze/ruby173/bin/ruby $argv[*] I'm clueless as to what is actually causing your problem, but since ruby.wrap does basically nothing, I would just delete it and make ruby.wrap a symlink to /home/jfreze/ruby173/bin/ruby. This removes csh from the equation.