From: adf AT mentor-systems DOT com (Austin David France) Subject: B19 sh.exe symbolic links problem 24 Sep 1998 06:05:01 -0700 Message-ID: <002f01bde713$54bba360$010120c0.cygnus.gnu-win32@menpc1> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit To: "gnuwin32" The following shell script creates a directory tree, and creates a symbolic link to the top level directory. If you cd from within a shell script to the subdirectory via the symbolic link, it actually only uses the information in the sybmolic link, it loses the subdirectory part. #!/bin/sh # Setup test case mkdir -p /mydir/subdir ln -s /mydir /yourdir # Reproduce cygwin32.dll bug cd /yourdir/subdir pwd ls -l /yourdir/subdir # Cleanup rm /yourdir rmdir /mydir/subdir rmdir /mydir The pwd above in my case outputs /e/GnuWin32/mydir not /mydir/subdir as it should be. This all works fine in bash. For the moment, I have moved sh.exe out of the way and linked /bin/sh to /bin/bash. I am using: Windows NT 4 Telnetted via InetD binary mounts, bash version 2.01.1(2)-release, cygwinb19.dll (669150 bytes) Can anyone else re-produce this problem, or even better does anyone have a fix for sh.exe? Austin David France Mentor Systems plc mailto:adf AT mentor-systems DOT com http://menpc1.mentor.misys.co.uk/help ------------------------------------------------------------------------ The views and opinions expressed in this e-mail message are the sender's and do not necessarily represent the views of Mentor Systems plc. ------------------------------------------------------------------------ - 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".