| delorie.com/archives/browse.cgi | search |
| 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: | <3AA9658B.EABF16E1@Wanadoo.fr> |
| Date: | Sat, 10 Mar 2001 00:21:47 +0100 |
| From: | Jerome BENOIT <JGMBenoit AT Wanadoo DOT fr> |
| X-Mailer: | Mozilla 4.76 [en] (Win98; U) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| To: | "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com> |
| CC: | Cygnus <cygwin AT sourceware DOT cygnus DOT com> |
| Subject: | Re: bug or feature: `eval' vs `#!' |
| References: | <4 DOT 3 DOT 1 DOT 2 DOT 20010309113008 DOT 023c7720 AT pop DOT ma DOT ultranet DOT com> |
> >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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |