Mail Archives: djgpp/2003/01/30/01:45:13
First, I suggest looking at the info docs for the glob function, which
is what DJGPP internally calls to handle the command line:
info libc alpha glob
About 57% down the page is text:
On MSDOS, filenames are always matched case-insensitively. On
filesystems that preserve letter-case in filenames (such as Windows 9x),
matches are case-insensitive UNLESS THE PATTERN INCLUDES UPPERCASE
CHARACTERS. (my caps)
So, if you use any upper case characters on your input you may be
surprised. I believe this is the behavior which is non-intuitive.
There are some good reasons for this behavior, but I agree it would be
nice in many applications to be able to turn it off case sensitive
matching and still be able to return the lowercased names when
appropriate.
- Raw text -