delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/23/15:26:32

From: ggp AT informix DOT com (Guy Gascoigne - Piggford)
Subject: More on case insensitivity
23 May 1997 15:26:32 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <3.0.32.19970522084806.0096be10.cygnus.gnu-win32@pop.pdx.informix.com>
Mime-Version: 1.0
X-Sender: ggp AT pop DOT pdx DOT informix DOT com
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Original-To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

After more thinking about this there are quite a few places where the case
insensitivity of the file system rears it's ugly head.  What's worse they
can crop up fairly rarely, which means that I can forget to deal with them
wich leads to getting unexpected results every now and again.

e.g

Wildcard expansion in the shell would need to be case insensitive, having
to do things like:

ls *.[Zz][Ii][Pp]

simply to get this list becomes a pain.

Likewise programs such as find that do their own wildcard expansion
(perhaps they actually use the same library - I'm not sure, I don't have
the code here) also need to be made aware of this.  Again, this is a pain.

$ find -name "*.[Zz][iI][Pp]" -maxdepth 1
../Memoryan.zip
../Perf.zip
../SNIP9510.ZIP
../TABJAZZ.ZIP
../TABS.ZIP
../TCSAMP.ZIP
../TZ30.ZIP

I suspect that there are others as well.

Guy


-- 
Guy Gascoigne - Piggford (ggp AT informix DOT com)
Software Engineer, Informix Software, Inc. (Portland, Oregon)
(503) 225-4574,  Fax (503) 221-2633

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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