This is the mail archive of the
mailing list for the Cygwin project.
Re: Shell script ignores $PATH?!
- From: luke dot kendall at cisra dot canon dot com dot au
- To: cygwin at cygwin dot com
- Date: Tue, 5 Oct 2004 17:51:17 +1000 (EST)
- Subject: Re: Shell script ignores $PATH?!
On 5 Oct, To: email@example.com wrote:
> Unfortunately, despite setting PATH to use only a network-installed
> Cygwin (and not include /bin, /usr/bin etc.), the shell script still
> somehow decides to invoke /usr/bin/sh.
I have two more pieces of info: the shell is started by using
/usr/bin/sh if the script is simply invoked directly from bash by
typing its full pathname.
If I start it either via bash or sh, it runs using whatever bash or sh
is found from PATH.
So my guess is that when a script with no #!/path line is run, then the
default is to run /usr/bin/sh to start it, and the PATH simply doesn't
come into it.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html