Ive just tested it on gentoo and osx and both of them accept arguments

> From: Robert Collins <[EMAIL PROTECTED]>
> Date: Tue, 30 Mar 2004 16:22:21 +1000
> To: Mary Gardiner <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [SLUG] Cross platform interpreter invocation
> 
> On Tue, 2004-03-30 at 13:47, Mary Gardiner wrote:
>> Hi folks,
>> 
>> I'm accustomed to starting my various Python and Perl files with:
>> 
>> #!/usr/bin/env python
>> 
>> or
>> 
>> #!/usr/bin/env perl
>> 
>> to deal with the situation where the python or perl binary lives in
>> different places on different systems (please don't reply suggesting I
>> just move it or just install Debian or something, some of us still work
>> in archaic environments where we don't have root on servers we use!!!!)
>> 
>> However, you can't pass arguments to whatever you're invoking, thanks to
>> the limits of the #! interpretion ("#!/usr/bin/env perl -w" at the top
>> of a file causes a search for a binary named "perl -w").
> 
> Are you sure? env --help suggests that it doesn't.
> 
> Rob
> -- 
> GPG key available at: <http://www.robertcollins.net/keys.txt>.
> 
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> 

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to