Yes, i think that's a better approach. I first saw it in a groovy script the other day. The documentation says that env can take multiple arguments, but it doesn't seem to be able to when used with #!
At 01:22 PM 9/16/2004 -0400, Alan Donovan wrote:
>On Thu, Sep 16, 2004 at 11:41:01AM -0400, Ken Anderson wrote:
>> It turns out you can only put one thing after the #! so you need do something like:
>> #! bin/run
>>
>> where run starts JScheme the way you want. So, i've updated this
>> example: http://openmap.bbn.com/~kanderso/jscheme/scriptometer/
>
>
>If you want to exec the interpreter found by a PATH lookup, use the
>following trick:
>
> #!/usr/bin/env runscheme
>
>This used to be one way to get Perl to run before the path was
>"standardised" to /usr/bin/perl.
>
>HTH
>alan
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
>Project Admins to receive an Apple iPod Mini FREE for your judgement on
>who ports your project to Linux PPC the best. Sponsored by IBM.
>Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
>_______________________________________________
>Jscheme-user mailing list
>Jsc...@li...
>https://lists.sourceforge.net/lists/listinfo/jscheme-user
|