From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27216 invoked from network); 2 Jun 2005 13:58:34 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Jun 2005 13:58:34 -0000 Received: (qmail 80268 invoked from network); 2 Jun 2005 13:58:28 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Jun 2005 13:58:28 -0000 Received: (qmail 7883 invoked by alias); 2 Jun 2005 13:58:20 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8943 Received: (qmail 7873 invoked from network); 2 Jun 2005 13:58:19 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Jun 2005 13:58:19 -0000 Received: (qmail 79194 invoked from network); 2 Jun 2005 13:58:19 -0000 Received: from viefep12-int.chello.at (213.46.255.25) by a.mx.sunsite.dk with SMTP; 2 Jun 2005 13:58:15 -0000 Received: from Dingo ([213.47.104.218]) by viefep12-int.chello.at (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050602135814.USYG2846.viefep12-int.chello.at@Dingo> for ; Thu, 2 Jun 2005 15:58:14 +0200 From: Christian Taylor To: "zsh-users" Subject: Re: ranges Date: Thu, 2 Jun 2005 15:57:22 +0200 User-Agent: KMail/1.8 References: <200506011828.32719.cht@chello.at> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506021557.22069.cht@chello.at> X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Thursday 02 June 2005 09:02, you wrote: > To summarise > > >> ls fred{09..13}.pl # noisy > >> ls fred<76-99>.pl # silent > >> ls fred<76->.pl # cute Well, the first form is for things like "touch fred{09..13}.pl" > > but surely following are identical? > > > >> ls *.(jpg|gif) # > >> ls *.{jpg,gif} # No! The first one uses zsh globbing to give ls the matching files, the second one first expands the command to "ls *.jpg *.gif" and works from there. Just try it in a folder with some .jpg files but no .gif files. Christian Taylor