This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: case sensitive directory names
- To: Kevin Hughes <kh at wg dot icl dot co dot uk>
- Subject: Re: case sensitive directory names
- From: Jason Zions <jazz at softway dot com>
- Date: Thu, 04 Dec 1997 10:47:29 -0700
- CC: "Gnuwin95 (E-mail)" <gnu-win32 at cygnus dot com>
- Organization: Softway Systems Inc.
- References: <01BD0098.CFFDAEE0@rodney.wg.icl.co.uk>
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
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".