Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3AA9658B.EABF16E1@Wanadoo.fr>
Date: Sat, 10 Mar 2001 00:21:47 +0100
From: Jerome BENOIT <JGMBenoit@Wanadoo.fr>
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
CC: Cygnus <cygwin@sourceware.cygnus.com>
Subject: Re: bug or feature: `eval' vs `#!'
References: <4.3.1.2.20010309113008.023c7720@pop.ma.ultranet.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



> >Hello:
> >
> >Under Win98 script files with as first line
> >
> >eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl
> >-S $0 $ argv:q'
> >
> >contrary to script files with bang mechanism (`#! <executable>')
> >are not identify as executable (and we cannot set them executable with
> >`chmod'),
> >and therefore the completion mechanism does NOT work for them.
> >
> >
> >
> >Is it a bug or a feature ?
> >
> >Byebye,
> >Jerome BENOIT
> 
> Shell scripts that don't start with !# are inherently non-portable.  See
> 
> Why doesn't my script work?
> http://www.cygwin.com/faq/faq_toc.html#TOC39
> 
> in the FAQ.  Keep in mind, this is a great source of information for
> issues/questions like these!

The script works under Cygwin and its first line is said to be portable,
hence my question.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

