delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/13/09:39:15

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
Message-Id: <5.1.0.14.2.20020213152946.05a7dd80@imap.local.mscha.org>
X-Sender: ml AT imap DOT local DOT mscha DOT org (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Wed, 13 Feb 2002 15:37:54 +0100
To: cygwin AT cygwin DOT com
From: Michael Schaap <cygwin AT mscha DOT org>
Subject: RE: /usr/bin/env - Incorrect parsing of #! line?
In-Reply-To: <GBEGLOMMCLDACBPKDIHFCEPKCGAA.gsw@agere.com>
References: <00b901c1b43b$ea06d130$6600a8c0 AT cherry>
Mime-Version: 1.0

At 15:25 13-2-2002, Gerald S. Williams wrote:
>I think DG's and PJA's original assessment was correct and
>BASH should be modified. Support for cross-platform scripts
>is important, and the #!/bin/env trick is used frequently.

Not so sure it's a bash thing.
Ash and zsh on Cygwin do exactly the same.


>Solaris (System V) systems don't combine #! arguments
>that way. I don't currently have access to any, but from
>what I can recall, I'm pretty sure that SunOS (BSD) and
>the various flavors of HP and VAX UNIXes all work like
>Solaris in this regard.

HP-UX 10.20 behaves the same as Cygwin and Linux with bash, ksh and sh.


>I have also seen examples in popular Unix books (such
>as the O'Reilly nutshell books) that rely on multiple
>arguments.

Well, those are not portable examples, then.

  - Michael

-- 
     I always wondered about the meaning of life.   So I looked it
     up in the dictionary under "L" and there it was - the meaning
     of life.  It was not what I expected.                  - Dogbert 


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