Subject: bash reverts to NT-style PATH in subshells.
From: [email-masked] (Francis Litterio)

2 Jan 1997 12:21:01 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Original-To: [email-masked]
Original-Sender: [email-masked]

Using the 17.1 release, create this shell script (called showpath):

    #!/bin/sh
    echo $PATH
    ls

and you'll see this problem:

    bash$ echo $PATH
    /franl/bin:/bin:/WINNT/system32:/WINNT:/dos
    bash$ ./showpath
    c:\franl\bin;c:c:\apps\cygwin32\H-i386-cygwin32\bin;C:\WINNT\system32;C:\WINNT;c:\dos
    ./showpath: ls: command not found

(Note: I have c:/apps/cygwin32/H-i386-cygwin32/bin mounted on /bin.)
Notice how bash's UNIXification of the PATH has been lost, and along
with it we lose the ability to use commands like ls from within the
script.
-- 
Francis Litterio                     PGP Key Fingerprint:
[email-masked]                  02 37 DF 6C 66 43 CD 2C
http://world.std.com/~franl/         10 C8 B5 8B 57 34 F3 21

-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".