Subject: B19 sh.exe symbolic links problem
From: [email-masked] (Austin David France)

25 Sep 1998 12:36:41 -0700
Message-ID: <004b01bde865$e714e890$010120c0.cygnus.gnu-win32@menpc1>
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
To: "Gnu-Win32 Mailing List (E-mail)" <[email-masked]>

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:[email-masked]
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
"[email-masked]" with one line of text: "help".