From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13100 invoked from network); 8 Mar 2004 12:23:00 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 8 Mar 2004 12:23:00 -0000 Received: (qmail 22437 invoked by alias); 8 Mar 2004 12:22:07 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7127 Received: (qmail 22313 invoked from network); 8 Mar 2004 12:22:04 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 8 Mar 2004 12:22:04 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.95.128.56] by sunsite.dk (MessageWall 1.0.8) with SMTP; 8 Mar 2004 12:22:3 -0000 Received: from 127.0.0.1 (localhost [127.0.0.1]) by dummy.domain.name (Postfix) with SMTP id 5BB62367A8E for ; Mon, 8 Mar 2004 20:22:02 +0800 (WST) Received: from gulag.gu.uwa.edu.au (gulag.guild.uwa.edu.au [130.95.100.5]) by asclepius.uwa.edu.au (Postfix) with ESMTP id 43B8B367CF0 for ; Mon, 8 Mar 2004 20:22:02 +0800 (WST) Received: from gulag.gu.uwa.edu.au (devenish@localhost [127.0.0.1]) by gulag.gu.uwa.edu.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i28CM1FN014723 for ; Mon, 8 Mar 2004 20:22:01 +0800 Received: (from devenish@localhost) by gulag.gu.uwa.edu.au (8.12.3/8.12.3/Debian-6.6) id i28CM02q014718 for zsh-users@sunsite.dk; Mon, 8 Mar 2004 20:22:00 +0800 Date: Mon, 8 Mar 2004 20:22:00 +0800 From: James Devenish To: zsh-users@sunsite.dk Subject: Re: PATCH: case-insensitive globbing Message-ID: <20040308122200.GA13641@mail.guild.uwa.edu.au> Mail-Followup-To: zsh-users@sunsite.dk References: <18393.1078742029@csr.com> <19603.1078744528@trentino.logica.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19603.1078744528@trentino.logica.co.uk> User-Agent: Mutt/1.3.28i In message <19603.1078744528@trentino.logica.co.uk> 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.