From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14182 invoked from network); 11 Sep 2003 10:05:11 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Sep 2003 10:05:11 -0000 Received: (qmail 28828 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: 19068 Received: (qmail 28709 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 h8BA4k816894; Thu, 11 Sep 2003 12:04:46 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <19xNvD-00001D-00>; Thu, 11 Sep 2003 11:39:27 +0200 Date: Thu, 11 Sep 2003 11:39:27 +0200 From: DervishD To: Oliver Kiddle Cc: Bart Schaefer , Zsh Subject: Re: Getting rid of temporaries... Message-ID: <20030911093927.GC50@DervishD> Mail-Followup-To: Oliver Kiddle , Bart Schaefer , Zsh References: <20030910203429.GA354@DervishD> <20030910223845.GA10805@lorien.emufarm.org> <1030911010623.ZM7489@candle.brasslantern.com> <1378.1063261796@gmcs3.local> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1378.1063261796@gmcs3.local> User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi Oliver :) * Oliver Kiddle dixit: > > print -l *.??.jpg(e['REPLY=${REPLY%.??.jpg}']) > Isn't that just the same as: > print -l *.??.jpg(:r:r) Yes!! I'm not used with the 'r' flag, and I didn't think of it. But yes, removing both suffixes at one time is just the same. In fact, both the .jpg and the two digit number are just suffixes for the image name. > Can do the unique with the `e' globbing flag but not without > temporaries or eval. How can I do using eval? Assume that I don't have the (u) flag... Thanks ! Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/