From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3517 invoked from network); 11 Sep 2003 06:27:50 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Sep 2003 06:27:50 -0000 Received: (qmail 27078 invoked by alias); 11 Sep 2003 06:27:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19063 Received: (qmail 27068 invoked from network); 11 Sep 2003 06:27:44 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Sep 2003 06:27:44 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [193.109.254.211] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Sep 2003 6:27:44 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-19.tower-36.messagelabs.com!1063261663!473542 X-StarScan-Version: 5.0.7; banners=-,-,- Received: (qmail 16592 invoked from network); 11 Sep 2003 06:27:43 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-19.tower-36.messagelabs.com with SMTP; 11 Sep 2003 06:27:43 -0000 Received: from gmcs3.local ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id h8B6RgHM017073; Thu, 11 Sep 2003 07:27:42 +0100 Received: from gmcs3.local (localhost [127.0.0.1]) by gmcs3.local (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id h8B6Tug01380; Thu, 11 Sep 2003 08:29:56 +0200 cc: Zsh X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <1030911010623.ZM7489@candle.brasslantern.com> From: Oliver Kiddle References: <20030910203429.GA354@DervishD> <20030910223845.GA10805@lorien.emufarm.org> <1030911010623.ZM7489@candle.brasslantern.com> To: Bart Schaefer Subject: Re: Getting rid of temporaries... Date: Thu, 11 Sep 2003 08:29:56 +0200 Message-ID: <1378.1063261796@gmcs3.local> Bart wrote: > > If you have the array, it's easy to do without uniq. To do it without > the array begins to creep into the realm of "so difficult it's not > worth bothering." > > The 'e' globbing flag gets you most of the way: > > print -l *.??.jpg(e['REPLY=${REPLY%.??.jpg}']) Isn't that just the same as: print -l *.??.jpg(:r:r) Can do the unique with the `e' globbing flag but not without temporaries or eval. Oliver