Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: /usr/bin/env - Incorrect parsing of #! line?
References: <00a201c1b430$5217b5c0$6600a8c0@cherry>
	<20020213015400.GI28002@redhat.com> <u1sb51tn.fsf@online.no>
	<20020221031131.GA1784@redhat.com>
Organization: Private
From: pjacklam@online.no (Peter J. Acklam)
Date: Thu, 21 Feb 2002 21:46:05 +0100
In-Reply-To: <20020221031131.GA1784@redhat.com> (Christopher Faylor's
 message of "Wed, 20 Feb 2002 22:11:31 -0500")
Message-ID: <y9hm1s36.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
Lines: 33

Christopher Faylor <cgf@redhat.com> wrote:

> Peter J. Acklam wrote:

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

Ok.  I'm not sure either.  I know that Solaris has an intro(1)
manual page which describes general command behaviour, standard
option parsing, etc.  I guess that might be a suitable place, but
cygwin has no such manual page.

> Where did you read about the behavior in "all UNIXes I work on"?
> We should probably document it in a similar place for cygwin.

That turned out to be an incorrect assumption on my part.  I have
worked with many UNIX flavours, and assumed that I had been using
this syntax on all of them, but it turned out to be that I had
only used it on Solaris where this syntax actually works.

> We'd certainly appreciate a patch to our documentation.  Just
> send it to cygwin@cygwin.com for review.

I'm not sure where it really ought to be documented.  :-/

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/

