From: Charles Sandmann Newsgroups: comp.os.msdos.djgpp Subject: Re: Command line wildcard expansion under Win2K Date: Thu, 30 Jan 2003 22:44:10 CST Organization: Rice University, Houston TX Lines: 21 Message-ID: <3e39ff1a.sandmann@clio.rice.edu> References: <3e394a9a DOT sandmann AT clio DOT rice DOT edu> NNTP-Posting-Host: clio.rice.edu X-Trace: joe.rice.edu 1043988667 12213 128.42.105.3 (31 Jan 2003 04:51:07 GMT) X-Complaints-To: abuse AT rice DOT edu NNTP-Posting-Date: 31 Jan 2003 04:51:07 GMT X-NewsEditor: ED-1.5.9 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > I personally see no reason why such a pattern should not work, but clearly > there is a lot of logic involved trying to provide UNIX like behavior under > MS-DOS and WinXX. Personally, I would prefer all 8.3 filenames returned in > lower case, and all others left alone, and for matches to be case > insensitive no matter what, but I can see that others might want something > else. When I get a chance, I wll make and submit a patch that works the way > I prefer, case-insensitive matching everywhere. I will probably not bother > changing anything in how filenames are actually returned. The module which controls this is djgpp/src/libc/posix/glob/glob.c It's included in the djlsr203.zip Look at the variable "caseless" (in particular where it is set when the name has upper case characters and use_lfn). If you want proper downcasing of 8.3 names under Win2K, you can also grab the updated CVS source: http://www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/posix/glob/glob.c but you will also need to grab the new _is_DOS83 routine: http://www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/dos/lfn/is_dos83.c