From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16622 invoked by alias); 12 Feb 2002 23:22:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 16572 invoked from network); 12 Feb 2002 23:22:07 -0000 Received: from unknown (HELO cmailg7.svr.pol.co.uk) (195.92.195.177) by sources.redhat.com with SMTP; 12 Feb 2002 23:22:07 -0000 Received: from modem-3740.cheetah.dialup.pol.co.uk ([217.134.110.156] helo=advent02) by cmailg7.svr.pol.co.uk with smtp (Exim 3.13 #0) id 16amFN-000691-00 for cygwin@cygwin.com; Tue, 12 Feb 2002 23:22:03 +0000 Message-ID: <00f401c1b41c$5f78a2b0$0100a8c0@advent02> From: "Chris January" To: Subject: /usr/bin/env - Incorrect parsing of #! line? Date: Tue, 12 Feb 2002 15:22:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2002-02/txt/msg00628.txt.bz2 > > > 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. > > Linux parses things this way too. I don't know what "UNIX"'s this works > on. > > (Sun, HP?) More specifically it's a quoting issue. Try: /usr/bin/env perl -w on the command line and compare with "/usr/bin/env perl -w" Regards Chris > -- 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/