From: nobu.nokada@... Date: 2003-01-15T14:43:56+09:00 Subject: Re: ruby -e not printing to stdout Hi, At Wed, 15 Jan 2003 12:48:45 +0900, Jim Freeze wrote: > 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[*] > > Anyone know how to fix this? The easiest and best way is to throw awy csh and use sh. Scripting in csh is really mad thing. #! /bin/sh exec /home/jfreeze/ruby173/bin/ruby "$@" -- Nobu Nakada