Date: Sat, 01 Feb 2003 12:47:59 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <7458-Sat01Feb2003124759+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <3e39ff1a.sandmann@clio.rice.edu> (message from Charles Sandmann on Thu, 30 Jan 2003 22:44:10 CST) Subject: Re: Command line wildcard expansion under Win2K References: <3e394a9a DOT sandmann AT clio DOT rice DOT edu> <3e39ff1a DOT sandmann AT clio DOT rice DOT edu> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Charles Sandmann > Newsgroups: comp.os.msdos.djgpp > Date: Thu, 30 Jan 2003 22:44:10 CST > > 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). I wish it were that simple, but it isn't. The ``when-to-downcase'' issue pops up in other places, not just in `glob'. `readdir', `getcwd', and `_fixpath' are 3 other prominent places. I think they all need to be changed to support whatever alternative match strategies you want to introduce. If you change `glob', but leave the other functions unchanged, it's possible you will have strange problems in this area. For example, GNU Make uses `glob' and `readdir' internally, so these two should be in agreement as far as file-name letter-case is concerned..