From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14206 invoked from network); 23 Apr 2004 14:14:00 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Apr 2004 14:14:00 -0000 Received: (qmail 12138 invoked by alias); 23 Apr 2004 14:13:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7397 Received: (qmail 12109 invoked from network); 23 Apr 2004 14:13:18 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 23 Apr 2004 14:13:18 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 23 Apr 2004 14:13:17 -0000 Received: (qmail 15467 invoked from network); 23 Apr 2004 14:13:17 -0000 Received: from main.gmane.org (80.91.224.249) by a.mx.sunsite.dk with SMTP; 23 Apr 2004 14:13:16 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BH1Qa-0005hF-00 for ; Fri, 23 Apr 2004 16:13:16 +0200 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 ; Fri, 23 Apr 2004 16:13:16 +0200 Received: from david by cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Apr 2004 16:13:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: Brace Expansion Date: Fri, 23 Apr 2004 15:13:06 +0100 Message-ID: References: <9f5i80hlg5kolhbm1behb316pe0jda0qvh@4ax.com> <15425.1082728843@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 X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.5 required=6.0 tests=RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.5 On Fri, 23 Apr 2004 15:00:43 +0100, wrote: >zzapper wrote: >> > ls -l *.{cfm,htm,html} >> >> >\ls -t *.{html,cfm,htm} >> zsh: no matches found: *.htm > >The correct way to do this is > ls -l *.(cfm|htm|html) >Then you'll only get `no matches' if none of the variants matched, which >is presumably what you want. > >Brace expansion is not part of globbing; it generates `*.html *.cfm >*.htm' before the patterns are examined. ls *.(Thanks|Merci|Dankeshoen|Gratzi) zzapper (vim, cygwin, wiki & 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