From: Park Heesob Date: 2003-01-15T14:17:46+09:00 Subject: Re: ruby -e not printing to stdout Hi, "Jim Freeze" wrote in message news:20030114225232.A2241@freeze.org... > > 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. > It is not redirection problem, but argument parsing problem. > % -> ruby.wrap -e 'puts $:.join("\n")' > I guess the following will work: 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[*] > > Anyone know how to fix this? Try with exec /home/jfreeze/ruby173/bin/ruby "$argv[*]" Park Heesob