Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: case-insensitive globbing



James Devenish wrote:
> In message <5792.1078749261@xxxxxxx>
> on Mon, Mar 08, 2004 at 12:34:21PM +0000, Peter Stephenson wrote:
> > > % ls /tmp/blah
> > > DATE
> > > % rehash
> > > % where date
> > > /tmp/blah/date
> > > /bin/date
> >
> > I don't quite understand what you think is wrong.
> 
> HFS is case-preserving, so I wouldn't expect Mac OS (X or prior) to
> be returning "date" as the name instead of "DATE". It wouldn't be
> functionally incorrect to use the former, but it does seem weird
> from a Mac-user point of view.
> 

That's probably a side effect of you trying to find `date' explicitly.
It stores it under the name found in the hash table.
If you'd done `where DATE' you'd probably have seen it in upper case.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author