| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| To: | cygwin AT cygwin DOT com |
| Subject: | /usr/bin/env - Incorrect parsing of #! line? |
| Organization: | Private |
| From: | pjacklam AT online DOT no (Peter J. Acklam) |
| Date: | Tue, 12 Feb 2002 19:38:21 +0100 |
| Message-ID: | <8z9y4kbm.fsf@online.no> |
| User-Agent: | Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 |
| (i386-msvc-nt5.0.2195) | |
| MIME-Version: | 1.0 |
| Lines: | 20 |
I use different computers where Perl is installed different
places, so I can't hardcode the location of perl in the shebang
line. Thus, I use env, which works great on all UNIXes I work on,
for instance
#!/usr/bin/env perl -w
print "This is Perl version $]\n";
but on Cygwin I get
/usr/bin/env: perl -w: No such file or directory
why does Cygwin look for the file "perl -w". No UNIX I have
worked on would parse the shebang line that way.
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |