From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16110 invoked from network); 4 Mar 2004 16:08:33 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Mar 2004 16:08:33 -0000 Received: (qmail 22132 invoked by alias); 4 Mar 2004 16:08:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7108 Received: (qmail 22117 invoked from network); 4 Mar 2004 16:08:13 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 4 Mar 2004 16:08:13 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.91.224.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 4 Mar 2004 16:8:12 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AyvOO-0006pf-00 for ; Thu, 04 Mar 2004 17:08:12 +0100 Received: from cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com ([80.3.247.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu Mar 4 16:08:12 2004 Received: from david by cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu Mar 4 16:08:12 2004 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: make "for x in *$1*" case insensitive? Date: Thu, 04 Mar 2004 16:08:09 +0000 Message-ID: References: <12606.1078410027@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com X-Newsreader: Forte Free Agent 1.93/32.576 English (American) Sender: news On Thu, 04 Mar 2004 14:20:27 +0000, Peter Stephenson wrote: >zzapper wrote: >> Hi Y'All >> >> for x in *$1* >> >> How can I make above case insensitive I guess I could transform > >Make what case insensitive? There's no test. 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 } zzapper (vim & cygwin & zsh) -- vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?" http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips