From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3241 invoked from network); 15 Aug 2006 03:02:55 -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,UNPARSEABLE_RELAY 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 03:02:55 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 62365 invoked from network); 15 Aug 2006 03:02:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Aug 2006 03:02:48 -0000 Received: (qmail 26645 invoked by alias); 15 Aug 2006 03:02:39 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10606 Received: (qmail 26636 invoked from network); 15 Aug 2006 03:02:38 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Aug 2006 03:02:38 -0000 Received: (qmail 61148 invoked from network); 15 Aug 2006 03:02:38 -0000 Received: from vms044pub.verizon.net (206.46.252.44) by a.mx.sunsite.dk with SMTP; 15 Aug 2006 03:02:37 -0000 Received: from torch.brasslantern.com ([71.121.0.226]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J40003CIR49RR11@vms044.mailsrvcs.net> for zsh-users@sunsite.dk; Mon, 14 Aug 2006 22:02:34 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id k7F32Wnk008034 for ; Mon, 14 Aug 2006 20:02:33 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k7F32Wv3008033 for zsh-users@sunsite.dk; Mon, 14 Aug 2006 20:02:32 -0700 Date: Mon, 14 Aug 2006 20:02:32 -0700 From: Bart Schaefer Subject: Re: Sorting files by their extension In-reply-to: <20060814214005.GF4770@princo> To: zsh-users@sunsite.dk Message-id: <060814200232.ZM8032@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20060814214005.GF4770@princo> Comments: In reply to Jean-Rene David "Sorting files by their extension" (Aug 14, 5:40pm) On Aug 14, 5:40pm, Jean-Rene David wrote: } Subject: Sorting files by their extension } } Has anyone got a ready-made way to do this? It's pretty much impossible to do as a glob qualifier, because sorting is the very last thing to happen, after all the other qualifiers are done. You can play games if you don't need the actual file name, or by first assigning to an array variable and then manipulating the array, but with only filename generation you're out of luck. x=( *(e%'reply=( $REPLY:e/$REPLY )'%) ) print -l $x:t 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.