From: ld@netrix.com (Long Doan)
Subject: Re: what did I miss? #!.... doesn't work in bash
1 Nov 1996 07:20:51 -0800
Sender: daemon@cygnus.com
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <327A08AE.2655.cygnus.gnu-win32@netrix.com>
References: <Pine.LNX.3.91.961030122503.3502I-100000@webnet.wn.com> <199610311912.LAA04347@cygnus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01b1 (X11; I; SunOS 5.4 sun4m)
Original-To: David Jeffers <jeffers@redrose.net>
Original-Cc: "Bret A. Schuhmacher" <bas@wn.com>, gnu-win32@cygnus.com
Original-Sender: owner-gnu-win32@cygnus.com

Still, the bang line must be interpreted in the other cases, like:
#!/usr/local/bin/perl, #!/bin/csh, or #!/usr/local/bin/tk. In these
cases, the first line is the only one that bash (or other shells) should
understand. In fact, bash will choke on (usable) scripts running under
those shells.

Long.


David Jeffers wrote:
> 
> >>>>> "Bret" == Bret A Schuhmacher <bas@wn.com> writes:
> 
>     The bang "#!/usr/sh" line isn't really necessary for shell
>     scripts using Cygnus bash. I remember reading about a
>     "magic cookie" but all my scripts work with it or without it
>     on Win 95. NT Perl uses a BAT file to build an executable
>     so again it isn't necessary.
> 
>     For instance:
> 
>     #!/bin/sh                           <---not necessary?
> 
>     awk ' { print $1 } '
> 
> 
>     works fine since awk is in my PATH.
> 
>     I think the "#!/bin/sh" line in Cygnus simply means
>     "this is an executable" since I don't even have to
>     chmod +x after I write the scripts like I do in Linux...
[...]
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
