From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7182 invoked from network); 11 Sep 2003 10:05:17 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Sep 2003 10:05:17 -0000 Received: (qmail 28853 invoked by alias); 11 Sep 2003 10:04:54 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19069 Received: (qmail 28794 invoked from network); 11 Sep 2003 10:04:53 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Sep 2003 10:04:53 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [217.174.194.138] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Sep 2003 10:4:52 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id h8BA4i816888; Thu, 11 Sep 2003 12:04:44 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <19xNwS-00001H-00>; Thu, 11 Sep 2003 11:40:44 +0200 Date: Thu, 11 Sep 2003 11:40:44 +0200 From: DervishD To: Bart Schaefer Cc: zsh-workers@sunsite.dk Subject: Re: Getting rid of temporaries... Message-ID: <20030911094044.GD50@DervishD> Mail-Followup-To: Bart Schaefer , zsh-workers@sunsite.dk References: <20030910203429.GA354@DervishD> <20030910223845.GA10805@lorien.emufarm.org> <1030911010623.ZM7489@candle.brasslantern.com> <20030911014657.GA19512@lorien.emufarm.org> <1378.1063261796@gmcs3.local> <1030911085614.ZM8201@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1030911085614.ZM8201@candle.brasslantern.com> User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi Bart :) * Bart Schaefer dixit: > } > 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? In this case it's not an issue, since the filenames will always have that name. The only change may be the number of digits, no more, no less. There will always be two suffixes: the image type and the order number. Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/