From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5994 invoked from network); 9 Mar 2005 12:43:34 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Mar 2005 12:43:34 -0000 Received: (qmail 9570 invoked from network); 9 Mar 2005 12:43:29 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Mar 2005 12:43:29 -0000 Received: (qmail 6010 invoked by alias); 9 Mar 2005 12:43:22 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8571 Received: (qmail 6001 invoked from network); 9 Mar 2005 12:43:21 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Mar 2005 12:43:21 -0000 Received: (qmail 8517 invoked from network); 9 Mar 2005 12:43:21 -0000 Received: from wproxy.gmail.com (64.233.184.203) by a.mx.sunsite.dk with SMTP; 9 Mar 2005 12:43:14 -0000 Received: by wproxy.gmail.com with SMTP id 69so263812wra for ; Wed, 09 Mar 2005 04:43:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=TwY3GEnFSqTx6EOhfTz3Ww5L+qM5t2zEFRExKZUmISPtDGzNgU8FfxP9MoAGG5citGcdwrVhnBr7g8E0fiz1TZxomp4xkH+qooB5gokovWZmvOASR5ZePJh18RNmhAV6NYztVP/xSM8BLx/N6dteGosCNEGmC9exHgpVKMMkeJg= Received: by 10.54.71.17 with SMTP id t17mr673519wra; Wed, 09 Mar 2005 04:43:13 -0800 (PST) Received: by 10.54.18.66 with HTTP; Wed, 9 Mar 2005 04:43:13 -0800 (PST) Message-ID: Date: Wed, 9 Mar 2005 13:43:13 +0100 From: J Reply-To: J To: Hugo Haas Subject: Re: Expansion of patterns Cc: zsh-users@sunsite.dk In-Reply-To: <87d5u958l3.fsf@jibboom.natpar.dnsalias.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <87d5u958l3.fsf@jibboom.natpar.dnsalias.net> X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.5 required=6.0 tests=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.2 X-Spam-Hits: -2.5 > I've been wanting to expand patterns that do not match filenames. For > example: > > echo a1 a2 a3 > > could be (hopefully) written: > > echo a[1-3] > [...] > Is there any way to expand patterns like this in a simple way? For this one you can just write a{1..3} which should work the way you expect. Note that it does keep leading zeroes, so that a{01..03} will produce a01 a02 a03. -- J "- Watashi, DATE-tte hajimete datta no... - Sou kai ? - Hontou wa suki na hito to surun deshou ?" -- Tokugawa Asuka