From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20366 invoked by alias); 12 Feb 2002 18:38:02 -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 20283 invoked from network); 12 Feb 2002 18:37:57 -0000 Received: from unknown (HELO mail49.fg.online.no) (148.122.161.49) by sources.redhat.com with SMTP; 12 Feb 2002 18:37:57 -0000 Received: from FENRIS (ti100720a001-0143.dialup.online.no [130.67.133.143]) by mail49.fg.online.no (8.9.3/8.9.3) with ESMTP id TAA03138; Tue, 12 Feb 2002 19:37:35 +0100 (MET) To: cygwin@cygwin.com Subject: /usr/bin/env - Incorrect parsing of #! line? Organization: Private From: pjacklam@online.no (Peter J. Acklam) Date: Tue, 12 Feb 2002 10:38:00 -0000 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 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-02/txt/msg00609.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. 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/