From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9747 invoked by alias); 21 Feb 2002 03:11:29 -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 9666 invoked from network); 21 Feb 2002 03:11:28 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 21 Feb 2002 03:11:28 -0000 Received: from cgf.cipe.redhat.com (cgf.cipe.redhat.com [10.0.1.172]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g1L3BRl04578 for ; Wed, 20 Feb 2002 22:11:27 -0500 Received: (from cgf@localhost) by cgf.cipe.redhat.com (8.11.6/8.8.7) id g1L3BVO13128 for cygwin@cygwin.com; Wed, 20 Feb 2002 22:11:31 -0500 Date: Wed, 20 Feb 2002 21:33:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: /usr/bin/env - Incorrect parsing of #! line? Message-ID: <20020221031131.GA1784@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <00a201c1b430$5217b5c0$6600a8c0@cherry> <20020213015400.GI28002@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23.1i X-SW-Source: 2002-02/txt/msg01017.txt.bz2 On Wed, Feb 20, 2002 at 09:35:16PM +0100, Peter J. Acklam wrote: >Christopher Faylor wrote: >>If it works the same way on linux and on cygwin, then there is >>nothing to fix. > >Ok. But where is this documented? > >I expected "#!/usr/bin/env perl -w" to work because I thought the >line would be interpreted as on the command line (shell) and as is >documented in the manual page for env. Since the behaviour is >different when the line is in the shebang line, it has to be >documented somewhere. AFAIK, it isn't documented anywhere except in the code. I don't know where it would be documented, actually. This obviously isn't an issue with /usr/bin/env. Where did you read about the behavior in "all UNIXes I work on"? We should probably document it in a similar place for cygwin. We'd certainly appreciate a patch to our documentation. Just send it to cygwin@cygwin.com for review. cgf -- Please do not send me personal email with cygwin questions. Use the resources at http://cygwin.com/ . -- 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/