delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/02/01/05:50:49

Date: Sat, 01 Feb 2003 12:47:59 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
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: <Pine DOT SUN DOT 3 DOT 91 DOT 1030130095126 DOT 2797A-100000 AT is> <3e394a9a DOT sandmann AT clio DOT rice DOT edu> <b1c3go$5d2$1 AT sass2141 DOT sandia DOT gov> <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

> From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
> 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..

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019