delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/09/11:44:54

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <4.3.1.2.20010309113008.023c7720@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Fri, 09 Mar 2001 11:33:06 -0500
To: Jerome BENOIT <JGMBenoit AT Wanadoo DOT fr>,
Cygnus <cygwin AT sourceware DOT cygnus DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: bug or feature: `eval' vs `#!'
In-Reply-To: <3AA87E5C.73329EC4@Wanadoo.fr>
Mime-Version: 1.0

At 01:55 AM 3/9/2001, Jerome BENOIT wrote:
>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!



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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

- Raw text -


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