This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

B19 sh.exe symbolic links problem


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@mentor-systems.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@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]