From: err AT raelity DOT com (Ernie Rael) Subject: Re: bash reverts to NT-style PATH in subshells. 2 Jan 1997 20:43:25 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <32cd7f17.72300421.cygnus.gnu-win32@mail.scruznet.com> References: <199701021925 DOT AA06768 AT world DOT std DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Original-To: gnu-win32 AT cygnus DOT com In-Reply-To: <199701021925.AA06768@world.std.com> X-Mailer: Forte Agent .99g/32.339 Original-Sender: owner-gnu-win32 AT cygnus DOT com On Thu, 2 Jan 1997 14:25:52 -0500, you wrote: >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. Thank you, you've helped me solve a mystery. I reported previously that i was getting errors from sed in configure scripts. I have lots of unix commands from here and there on my system and i was getting the wrong version of sed due to the problem that you describe. I was starting bash from a shortcut and doing some path initialization in my .bash_profile. My shortcut now starts a file, bashit.bat, that looks something like set PATH=3D%cygbin%;%PATH% bash -login I've got cygbin already in the environment. The problem you report is still a problem, but at least this bashit.bat workaround has got me back online. -ernie - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".