Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: case-insensitive globbing
- X-seq: zsh-users 7127
- From: James Devenish <j-devenish@xxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: PATCH: case-insensitive globbing
- Date: Mon, 8 Mar 2004 20:22:00 +0800
- In-reply-to: <19603.1078744528@xxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <18393.1078742029@xxxxxxx> <19603.1078744528@xxxxxxxxxxxxxxxxxxxxx>
In message <19603.1078744528@xxxxxxxxxxxxxxxxxxxxx>
on Mon, Mar 08, 2004 at 12:15:28PM +0100, Oliver Kiddle wrote:
> It's just a thought but would it be somehow possible to detect the
> filesystem type and allow the efficency gain to be of use where, for
> example, a windows partition is mounted from linux.
Mac OS X has the same problem -- mixtures of case-sensitive and
case-insensitive filesystems all at once.
> It seems that there is a getmntent library function and we can get the
> name of the filesystem.
Note that this varies between SysV and BSD systems, at least (cf.
getmntent vs statfs).
> Presumably this is how find's -fstype option works. I can't see any
> way of determining a filesystem's case-sensitive/case-preserving
> properties but we can always have a special array so the user just
> needs casefs=( vfat )
Also: HFS ?
Also, what about the following phenomenon (which is not usual amongst
shells) -- is it the same under Cygwin?
% mkdir blah
% cp -p =date blah/DATE
% export PATH=$PWD/blah:$PATH
% ls /tmp/blah
DATE
% rehash
% where date
/tmp/blah/date
/bin/date
(not /tmp/blah/DATE) In this case, /tmp is on an HFS volume. Of course,
it might be different if /tmp/blah were on a UFS volume. Might be
awkward to calculate all this.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author