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]

Re: Case sensitivity in filenames


Paul,

This is the same behavior as in b19.  If you type in the full name (no wildcards), then there is no case sensitivity in the name (ie abc.zip and ABC.ZIP are treated the same).  When you use wildcards, then the regexp parsing, which is based on UNIX code, IS case sensitive, since it has to read the directory contents and then do compares.  In the full filename case, the name is passed to the underlying FS code, which doesn't care about case.

Bob McGowan
bob dot mcgowan at usa dot net

> I can't believe that this isn't a FAQ, but I've looked and can't find
> it. I've just installed cygwin B20.1, and it appears that the commands
> are treating files case-sensitively. In particular, if I do (from
> COMMAND.COM) "ls *.zip" I get a list of zip files in the current
> directory. But if I do "ls *.ZIP" I get nothing! Now, I understand that
> Unix filenames are case sensitive, but Windows ones aren't and so I
> would expect the command to produce the same results in both cases (or
> at least for there to be an option to make this happen). But it appears
> not...
> 
> Can anybody suggest what I'm missing? My CYGWIN environment variable is
> not set at all. Should I set something in it? The documentation doesn't
> show anything which looks relevant.
> 
> Thanks,
> Paul Moore

-----
See the original message at http://www.egroups.com/list/gnu-win32/?start=10270
-
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]