From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22190 invoked from network); 15 Aug 2006 09:37:09 -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.4 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; 15 Aug 2006 09:37:09 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 39976 invoked from network); 15 Aug 2006 09:37:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Aug 2006 09:37:02 -0000 Received: (qmail 419 invoked by alias); 15 Aug 2006 09:36:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10609 Received: (qmail 408 invoked from network); 15 Aug 2006 09:36:51 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Aug 2006 09:36:51 -0000 Received: (qmail 38765 invoked from network); 15 Aug 2006 09:36:51 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 15 Aug 2006 09:36:50 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly13c.srv.mailcontrol.com (MailControl) with ESMTP id k7F9Ztlf006724 for ; Tue, 15 Aug 2006 10:36:47 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Tue, 15 Aug 2006 10:36:42 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.4/8.13.4) with ESMTP id k7F9agLV010293 for ; Tue, 15 Aug 2006 10:36:42 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.4/8.13.4/Submit) with ESMTP id k7F9af4V010290 for ; Tue, 15 Aug 2006 10:36:41 +0100 Message-Id: <200608150936.k7F9af4V010290@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk Subject: Re: Sorting files by their extension In-reply-to: <060814200232.ZM8032@torch.brasslantern.com> References: <20060814214005.GF4770@princo> <060814200232.ZM8032@torch.brasslantern.com> Comments: In-reply-to Bart Schaefer message dated "Mon, 14 Aug 2006 20:02:32 -0700." Date: Tue, 15 Aug 2006 10:36:41 +0100 From: Peter Stephenson X-OriginalArrivalTime: 15 Aug 2006 09:36:42.0326 (UTC) FILETIME=[50DCAF60:01C6C04E] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-04-01 (www.mailcontrol.com) on 10.67.0.123 Bart Schaefer wrote: > Aside to PWS: It appears that as a side-effect of the *(+func) syntax, > it is no longer possible to use "+" as the delimiter in *(e+'stmt'+). > This should at least be documented. Are you sure? It's parsed left to right and it's supposed to look for the delimiters for the "e" before even thinking about the next qualifier---given that pretty much anything can occur in the middle that's about the only way it could work. I can do this: % echo g* glob.c glob.epro glob.o glob.pro glob.syms % echo g*(e:'reply=(${REPLY[2,-1]}${REPLY[1]}ay)':) lob.cgay lob.eprogay lob.ogay lob.progay lob.symsgay % echo g*(e+'reply=(${REPLY[2,-1]}${REPLY[1]}ay)'+) lob.cgay lob.eprogay lob.ogay lob.progay lob.symsgay % trangefysay() { reply=(${REPLY[2,-1]}${REPLY[1]}ay) } % echo g*(e+'trangefysay'+) lob.cgay lob.eprogay lob.ogay lob.progay lob.symsgay % echo g*(+trangefysay) lob.cgay lob.eprogay lob.ogay lob.progay lob.symsgay -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php