This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


"David Gluss" <dgluss@marple-tech.com> wrote:

> I don't know if it's constructive to suggest an alternative trick, rather
> than trying to fix cygwin, in this forum.  However, this might work
> for you:
>>------------
>>: # -*-Mode: perl;-*- use perl, wherever it is
>>eval 'exec perl -wS $0 ${1+"$@"}'
>>  if 0;
>>#!/usr/local/bin/perl -w
>>------------

Thanks!  But I wonder, does the colon really belong there?  If so,
what does it do?  Will this work under all common shells (sh, ksh,
bash, zsh, csh, tcsh)?

I hasitate to use a script with no shebang line, because I'm so
used to it always being present in a script, but if I don't really
need it, then I guess I can do without.

Peter

-- 
People say I'm indifferent, but I don't care.


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]