delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/13/13:38:27

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
Date: Wed, 13 Feb 2002 13:37:53 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: /usr/bin/env - Incorrect parsing of #! line?
Message-ID: <20020213183753.GC32148@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <020213145223 DOT AA61562 DOT SM AT nike DOT ins DOT cwru DOT edu>
Mime-Version: 1.0
In-Reply-To: <020213145223.AA61562.SM@nike.ins.cwru.edu>
User-Agent: Mutt/1.3.23.1i

On Wed, Feb 13, 2002 at 09:52:23AM -0500, Chet Ramey wrote:
>>The problem looks to be that bash "helps out" the system by executing
>>scripts beginning with #!.  In the source for bash, look in
>>execute_cmd.c, line 3369.  Only one argument is allowed.  So e.g.
>>#!/usr/bin/env perl -w becomes "/usr/bin/env" "perl -w" If I make a
>>patch for this, should it go to the cygwin list?  Should it just go to
>>gnu.bash.bug and leave it at that?
>
>Only if the kernel doesn't do it, as discovered by configure.
>Virtually all Unices understand that executable format in the kernel.
>Cygwin does, too.

Right.  And, as I have noted, we're not going to be changing either
cygwin or bash.  The current behavior seems to be consistent with a
number of UNIXes.  I just tried it on OSF1 v3.2 and irix 5.3.  Same
result as cygwin.

Let's lay this one to rest.  Nothing is going to change.  Find some
other way to accomplish what you need to do.  Continued speculation
on how to change cygwin or bash is going to get you nowhere.

cgf

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019