From: Robert Klemme Date: 2004-10-06T17:24:50+09:00 Subject: Re: env question "Michael Campbell" schrieb im Newsbeitrag news:811f2f1c041005105466eefc5b@mail.gmail.com... > On Wed, 6 Oct 2004 00:49:55 +0900, Robert Klemme wrote: > > > 17:46:28 [ruby]: for sh in `cat /etc/shells` ; do echo $sh; $sh -c ../a.rb; > > done > > /bin/sh > > yes! > > . > > > Robert, you're EXPLICITLY running each shell; that's different from > what Ara did; he was having the shell parse the #! line. If you go > with "$sh -c rubyscript", you don't need the #! at all, which makes > the question moot, no? Each shell is run individually but it evaluates the first line of the script; the test is quite the same as Ara's. Please read the code again carefully. robert