From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27486 invoked from network); 11 Sep 2003 10:05:04 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Sep 2003 10:05:04 -0000 Received: (qmail 28790 invoked by alias); 11 Sep 2003 10:04:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19067 Received: (qmail 28706 invoked from network); 11 Sep 2003 10:04:52 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Sep 2003 10:04:52 -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 h8BA4j816891; Thu, 11 Sep 2003 12:04:45 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <19xNzZ-00001L-00>; Thu, 11 Sep 2003 11:43:57 +0200 Date: Thu, 11 Sep 2003 11:43:57 +0200 From: DervishD To: Bart Schaefer Cc: zsh-workers@sunsite.dk Subject: Re: Getting rid of temporaries... Message-ID: <20030911094357.GE50@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? I almost forgot... Since some names may have *three* digits in the number part in the future, is better for me to do :r:r instead of pattern matching. Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/