From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22047 invoked from network); 1 Jun 2005 16:29:35 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Jun 2005 16:29:35 -0000 Received: (qmail 16326 invoked from network); 1 Jun 2005 16:29:28 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Jun 2005 16:29:28 -0000 Received: (qmail 17102 invoked by alias); 1 Jun 2005 16:29:22 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8935 Received: (qmail 17092 invoked from network); 1 Jun 2005 16:29:21 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 1 Jun 2005 16:29:21 -0000 Received: (qmail 15304 invoked from network); 1 Jun 2005 16:29:21 -0000 Received: from viefep13-int.chello.at (213.46.255.15) by a.mx.sunsite.dk with SMTP; 1 Jun 2005 16:29:17 -0000 Received: from Dingo ([213.47.104.218]) by viefep13-int.chello.at (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050601162915.NOOF1319.viefep13-int.chello.at@Dingo> for ; Wed, 1 Jun 2005 18:29:15 +0200 From: Christian Taylor To: "zsh-users" Subject: Re: ranges Date: Wed, 1 Jun 2005 18:28:32 +0200 User-Agent: KMail/1.8 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200506011828.32719.cht@chello.at> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 All right, let's hope I don't write too much nonsense... > ls fred{09..13}.pl > ls fred<76-99>.pl > ls fred<76->.pl > > Are these really different? "ls fred{09..13}.pl" = "ls fred09.pl fred10.pl fred11.pl fred12.pl fred13.pl" This is just expanded by the shell, no matter which of those files actually exist. "ls fred<76-99>.pl" = "ls " The shell inserts only existing files which match the specified criterium. "ls fred<76->.pl" is like the above, but would match any number greater than 75, for instance fred28742.pl > ls *.(jpg|gif) # list graphic files > ls fred{joe,sid}.pl > > Are these really different? "ls *.(jpg|gif)" = "ls " "ls fred{joe,sid}.pl" = "ls fredjoe.pl fredsid.pl" Hope this helps, Christian Taylor