From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23824 invoked from network); 13 Apr 2005 04:21:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Apr 2005 04:21:13 -0000 Received: (qmail 46320 invoked from network); 13 Apr 2005 04:21:06 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Apr 2005 04:21:06 -0000 Received: (qmail 27 invoked by alias); 13 Apr 2005 04:20:58 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8676 Received: (qmail 13 invoked from network); 13 Apr 2005 04:20:58 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Apr 2005 04:20:58 -0000 Received: (qmail 45256 invoked from network); 13 Apr 2005 04:20:58 -0000 Received: from blackbird.world-net.net (204.57.72.6) by a.mx.sunsite.dk with SMTP; 13 Apr 2005 04:20:53 -0000 Received: from blackbird.world-net.net (www@localhost.world-net.net [127.0.0.1]) by blackbird.world-net.net (8.12.11/8.12.8) with SMTP id j3D4KYqQ056484; Tue, 12 Apr 2005 23:20:34 -0500 (CDT) (envelope-from teratorn@world-net.net) Received: from dsl2-123.guam.netpci.com ([202.128.83.123]) (SquirrelMail authenticated user teratorn) by www.world-net.net with HTTP; Wed, 13 Apr 2005 14:20:35 +1000 (ChST) Message-ID: <37104.202.128.83.123.1113366035.squirrel@www.world-net.net> In-Reply-To: <729088040504121813272d8ef2@mail.gmail.com> References: <729088040504121813272d8ef2@mail.gmail.com> Date: Wed, 13 Apr 2005 14:20:35 +1000 (ChST) Subject: Re: brace expansion question From: "Eric Mangold" To: zsh-users@sunsite.dk Cc: "grover mitchell" User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Scanned-By: MIMEDefang 2.48 on 127.0.0.1 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 > I have a file that contains a list like so: > > foo1{01..10} > bar2{01..10} > > Is there any way to have zsh do a brace expansion on the contents of this > file? > > Thanks! > This is kind of a lame way to do it. Hopefully someone has something better :) for word in `cat file`; eval echo $word I guess you can adapt that to your needs. Unfortunately, I don't see a parameter expansion flag that performs brace expansion on the result. It seems like there ought to be one. Perhaps the "e" flag should also do brace expansion in addition to the other types of expansion it does. Hmm, there is probably a good reason it doesn't.