/usr/bin/env - Incorrect parsing of #! line?

pjacklam pjacklam@online.no
Fri Feb 22 05:26:00 GMT 2002


> Create a wrapper script, e.g. '/usr/local/bin/perl -w', with
> contents
>
>         #!/bin/sh
>         perl -w $*

Firstly, I would need to do that on every computer I might
run Perl on, which in itself is harly possible.  At the
very least it is rather impractical.

Secondly, I run Perl with many different combinations of
options, like "perl -w", "perl -wn", "perl -0777 -wn", etc.
which makes that approach even far less feasible.

By the way, you did mean "$@" and not $*, didn't you? :-)

Peter

-- 
Peter J. Acklam - pjacklam@online.no - http://home.online.no/~pjacklam


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list