From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2986 invoked from network); 23 Aug 2006 08:48:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Aug 2006 08:48:25 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 80818 invoked from network); 23 Aug 2006 08:48:15 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Aug 2006 08:48:15 -0000 Received: (qmail 12986 invoked by alias); 23 Aug 2006 08:48:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10639 Received: (qmail 12976 invoked from network); 23 Aug 2006 08:48:08 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Aug 2006 08:48:08 -0000 Received: (qmail 79775 invoked from network); 23 Aug 2006 08:48:08 -0000 Received: from mailhost.u-strasbg.fr (130.79.200.157) by a.mx.sunsite.dk with SMTP; 23 Aug 2006 08:48:07 -0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.13.6/jtpda-5.5pre1) with ESMTP id k7N8m6xC023527 for ; Wed, 23 Aug 2006 10:48:06 +0200 (CEST) Received: from xpeerience.u-strasbg.fr (xpeerience.u-strasbg.fr [130.79.188.35]) by baal.u-strasbg.fr (8.13.7/jtpda-5.5pre1) with ESMTP id k7N8m6j5058864 for ; Wed, 23 Aug 2006 10:48:06 +0200 (CEST) Received: by xpeerience.u-strasbg.fr (Postfix, from userid 1000) id 2278BD2C26; Wed, 23 Aug 2006 10:48:10 +0200 (CEST) Date: Wed, 23 Aug 2006 10:48:10 +0200 From: Marc Chantreux To: zsh-users Subject: Re: e:: with an array ? Message-ID: <20060823084809.GB12479@ulpmm.u-strasbg.fr> Mail-Followup-To: zsh-users References: <20060822204536.GA11639@ulpmm.u-strasbg.fr> <060822202616.ZM7566@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <060822202616.ZM7566@torch.brasslantern.com> User-Agent: Mutt/1.5.12-2006-07-14 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (mailhost.u-strasbg.fr [IPv6:2001:660:2402::157]); Wed, 23 Aug 2006 10:48:06 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.4/1714/Wed Aug 23 04:29:05 2006 on mr7.u-strasbg.fr X-Virus-Status: Clean le 22/08/2006, Bart Schaefer nous =E9crivait : > On Aug 22, 10:45pm, Marc Chantreux wrote: > In general there's no correlation between glob qualifiers and parameter > expansion flags, so you shouldn't expect that. E.g. ${(U)x} means to > convert $x to uppercase, but *(U) means to match files owned by the > current effective user ID. In general .. but this correlation can be very usefull so i've tried something that smells logical for me :-) > } I haven't found an alternative in the doc so i wonder again > } (http://www.zsh.org/mla/users//2006/msg00193.html) if there is a kind= a > } perl grep :-) >=20 > If you mean > grep { func } @x this grep, yes.=20 > as in > map { if (func) { $_ } else { () } } @x > then no, there is no direct zsh equivalent, except in the special case > where func is the zsh equivalent of m/pattern/. something like python yield, so ?=20 no ... i'm kidding! Thanks for enligthenment, Bart. regards mc --=20 t=E9l=E9phone : 03.90.24.00.19 courriel : marc.chantreux@ulpmm.u-strasbg.fr ---------------------------------------