From: Ara.T.Howard@... Date: 2004-10-06T00:04:53+09:00 Subject: Re: env question On Tue, 5 Oct 2004, Robert Klemme wrote: > Sure enough. But what's the advantage over > > #!ruby > > Are there shells that don't allow this? jib:~ > for shell in tcsh csh sh bash ksh;do echo $shell; $shell -c ./a.rb;done tcsh ./a.rb: Command not found. csh ./a.rb: Command not found. sh sh: ./a.rb: ruby: bad interpreter: No such file or directory bash bash: ./a.rb: ruby: bad interpreter: No such file or directory ksh ksh: ./a.rb: No such file or directory does that work for you - if so what os/shell? > Does env search not only $PATH but elsewhere? AFAIK it searches only in $PATH. cheers. -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | A flower falls, even though we love it; | and a weed grows, even though we do not love it. | --Dogen ===============================================================================