This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: bug or feature: `eval' vs `#!'
- To: Jerome BENOIT <JGMBenoit at Wanadoo dot fr>, Cygnus <cygwin at sourceware dot cygnus dot com>
- Subject: Re: bug or feature: `eval' vs `#!'
- From: "Larry Hall (RFK Partners, Inc)" <lhall at rfk dot com>
- Date: Fri, 09 Mar 2001 11:33:06 -0500
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@rfk.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