delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/26/20:45:37

From: eholter AT newpointtech DOT com (Eric Holter)
Subject: B19.1: bug using 'cd' in sh.exe
26 Aug 1998 20:45:37 -0700 :
Message-ID: <35E40BE8.5E90CB62.cygnus.gnu-win32@newpointtech.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

hello,
i found that since bash.exe spawns sh.exe when one shell script calls
another, baffeling behavior results when sh.exe behaves differently from
bash.exe.  in one case, i found that bash.exe can handle doing 'cd
d:/src' but sh.exe cannot handle this syntax.  instead, you must do 'cd
//d/src' or something similar.

futhermore, if you are currently in a directory like '//d/src', and you
try typing 'cd //d' from the bash.exe command prompt, you find that you
didn't really change directories at all after the 'cd' command.
astoundingly, doing 'pwd' says '//d', but doing an 'ls' reveals that you
are actually still in '//d/src'.

thanks,
  eric holter
  newpoint technologies inc.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019