From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 350 invoked from network); 5 Mar 2004 13:06:24 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 5 Mar 2004 13:06:24 -0000 Received: (qmail 23801 invoked by alias); 5 Mar 2004 13:05:58 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7116 Received: (qmail 23782 invoked from network); 5 Mar 2004 13:05:58 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 5 Mar 2004 13:05:58 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [212.238.192.16] by sunsite.dk (MessageWall 1.0.8) with SMTP; 5 Mar 2004 13:5:57 -0000 Received: from mscha.com (ratbert.local.mscha.org [192.168.0.52]) (authenticated bits=0) by smtp.mscha.org (8.12.10/8.12.10) with ESMTP id i25D5vtd002856 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 5 Mar 2004 14:05:57 +0100 Message-ID: <40487B35.2080802@mscha.com> Date: Fri, 05 Mar 2004 14:05:57 +0100 From: Michael Schaap User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040224) X-Accept-Language: en-us, en MIME-Version: 1.0 To: zsh-users@sunsite.dk Subject: Re: make "for x in *$1*" case insensitive? References: <1044.1078418794@csr.com> In-Reply-To: <1044.1078418794@csr.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-milter 0.1 @ mscha.org (http://www.amavis.org/) On 4-Mar-2004 17:46, Peter Stephenson wrote: >zzapper wrote: > > >>If I call the following script with >> >> >> >>>vvv me >>> >>> >>It will not list a file say READ.ME but will list READ.me >> >>function vvv () { >>for x in *$1* >>do >> echo $x >>done >>} >> >> > >function vvv() { > setopt localoptions extended_glob > local x > > for x in (#i)*$1* > do > echo $x > done >} > > It would be nice, though, if zsh had an option to make file globbing case insensitive. I'd enable than on my Cygwin machine, since the Windows file systems basically *are* case insensitive... (Bash has such an option: nocaseglob...) – Michael