From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65 invoked from network); 11 Sep 2003 08:56:22 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Sep 2003 08:56:22 -0000 Received: (qmail 8815 invoked by alias); 11 Sep 2003 08:56:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19064 Received: (qmail 8806 invoked from network); 11 Sep 2003 08:56:17 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Sep 2003 08:56:17 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.232.255] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Sep 2003 8:56:16 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h8B8uEp08202 for zsh-workers@sunsite.dk; Thu, 11 Sep 2003 01:56:14 -0700 From: Bart Schaefer Message-Id: <1030911085614.ZM8201@candle.brasslantern.com> Date: Thu, 11 Sep 2003 08:56:14 +0000 In-Reply-To: <20030911014657.GA19512@lorien.emufarm.org> Comments: In reply to Danek Duvall "Re: Getting rid of temporaries..." (Sep 10, 6:46pm) References: <20030910203429.GA354@DervishD> <20030910223845.GA10805@lorien.emufarm.org> <1030911010623.ZM7489@candle.brasslantern.com> <20030911014657.GA19512@lorien.emufarm.org> <1378.1063261796@gmcs3.local> In-Reply-To: <1378.1063261796@gmcs3.local> Comments: In reply to Oliver Kiddle "Re: Getting rid of temporaries..." (Sep 11, 8:29am) X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: Getting rid of temporaries... MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 10, 6:46pm, Danek Duvall wrote: } } There's still no way of expanding a glob inside ${}, short of ${$(echo *)}, } is there? No, there's not, because filename generation is always done last. On Sep 11, 8:29am, Oliver Kiddle wrote: } Subject: Re: Getting rid of temporaries... } } > print -l *.??.jpg(e['REPLY=${REPLY%.??.jpg}']) } } Isn't that just the same as: } } print -l *.??.jpg(:r:r) Yes, it is, but it's harder to generalize the latter to an arbitrary name rewrite. What if there weren't a dot before the number part?