From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hughes To: "'Jason Zions'" Cc: "Gnuwin95 (E-mail)" Subject: RE: case sensitive directory names Date: Fri, 05 Dec 1997 01:25:00 -0000 Message-id: <01BD0154.83D95160@rodney.wg.icl.co.uk> X-SW-Source: 1997-12/msg00175.html -----Original Message----- From: Jason Zions [SMTP:jazz@softway.com] Sent: Thursday, December 04, 1997 5:47 PM To: Kevin Hughes Cc: Gnuwin95 (E-mail) Subject: Re: case sensitive directory names It's not gnuwin that "remembers" the original case you typed - it's the filesystem. NTFS and FAT16 (under NT, anyway) are case-storing filesystems; Win32 is case-insensitive when looking at the stored filenames. Instead of using the bash built-in pwd, use /bin/pwd to get the "real" working directory in a case-consistent way. /bin/pwd walks the filesystem to find out where you are, while the bash built-in tracks it by assuming a starting point and watching the cd commands fly by. (If you cd through a symlink, I think you'll get wildly different answers from the builtin pwd and /bin/pwd; I don't know which is more useful to your scripts.) Jason Jason, Thanks for the suggestion but you have left me confused. The only pwd I know about is the pwd in the bash shell which I thought was the same as the pwd.exe in /gnuwin32/b18/H-i386-cygwin32/bin. There is no /bin/pwd I tried calling the /gnuwin32/b18/H-i386-cygwin32/bin/pwd directly and get exactly the same results as doing pwd What is the /bin/pwd you are refering to Kevin - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".