/usr/bin/env - Incorrect parsing of #! line?
William F. Hammond
hammond@csc.albany.edu
Thu Feb 21 19:10:00 GMT 2002
pjacklam@online.no (Peter J. Acklam) writes:
> "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com> wrote:
>
> > Well if env documentation states a particular behavior and that
> > behavior is not what you see, then there is a bug in env or it's
> > documentation.
>
> What made me believe that "#!/usr/bin/env perl -w" should work was
> the following part of the documentation for env:
I don't understand why you want to use /usr/bin/env under Cygwin.
Not everything that makes sense under *ix makes sense for Cygwin.
Presumably one runs Cygwin because one does not want to run Linux
so that one can have simultaneous single platform access to Win*
things and Gnu things familiar in *ix contexts.
That said, doesn't it then make sense to use a straight Win* build for
perl so that perl can be used in Win* mode? Granted that -- and
granted the desire to build environment outside of the Perl script
itself -- one may use either a bat file or an sh script, as
appropriate for the calling context, to create the needed environment.
Either way after building the environment use the syntax:
perl {script-name} {script-arg} ... .
-- Bill
--
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