delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/07/01:54:16

From: rkim AT ElectronicDNA DOT com (Richard Y. Kim)
Subject: ash.exe bug
7 Apr 1998 01:54:16 -0700 :
Message-ID: <m0yMFFA-000UjCC.cygnus.gnu-win32@gateway.ElectronicDNA.com>
Reply-To: rkim AT ElectronicDNA DOT com
To: gnu-win32 list <gnu-win32 AT cygnus DOT com>

The following illustrates gnu-win32 b19 ash.exe bug where
the cd command does not work if a symbolic link is involved.

bash.exe-2.01$ ln -s / /i_am_a_symlink
bash.exe-2.01$ /bin/ash -c "cd /i_am_a_symlink/tmp; pwd"
/
bash.exe-2.01$ /bin/bash -c "cd /i_am_a_symlink/tmp; pwd"
/i_am_a_symlink/tmp
bash.exe-2.01$ rm /i_am_a_symlink

Note that /bin/ash.exe is what comes as sh.exe in cdk.tar.gz.
This is one reason why my /bin/sh is a copy of bash, i.e.,

bash.exe-2.01$ ls -l /bin
total 370
-rwxr-xr-x   1 0        everyone    55808 Feb 26 10:24 ash.exe
-rwxr-xr-x   1 0        everyone   349184 Feb 26 10:18 bash.exe
-rwxr-xr-x   1 0        everyone   349184 Apr  6 13:53 sh.exe

Richard Y. Kim
rkim AT ElectronicDNA DOT com

-
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