From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1045 invoked from network); 13 Sep 2004 16:11:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Sep 2004 16:11:36 -0000 Received: (qmail 77946 invoked from network); 13 Sep 2004 16:11:25 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Sep 2004 16:11:25 -0000 Received: (qmail 26912 invoked by alias); 13 Sep 2004 16:11:17 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7982 Received: (qmail 26898 invoked from network); 13 Sep 2004 16:11:17 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Sep 2004 16:11:17 -0000 Received: (qmail 74137 invoked from network); 13 Sep 2004 16:10:18 -0000 Received: from unknown (HELO mailsweeperjp.CSR.COM) (202.214.225.228) by a.mx.sunsite.dk with SMTP; 13 Sep 2004 16:10:16 -0000 Received: from exchangejp.csr.com (unverified) by mailsweeperjp.CSR.COM (Content Technologies SMTPRS 4.3.1) with ESMTP id for ; Tue, 14 Sep 2004 01:14:41 +0900 Received: from EXCHANGE02.csr.com ([192.168.137.45]) by exchangejp.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 13 Sep 2004 17:11:23 +0100 Received: from news01.csr.com ([192.168.143.38]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 13 Sep 2004 17:11:19 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.12.11/8.12.11) with ESMTP id i8DGA8FW005900 for ; Mon, 13 Sep 2004 17:10:08 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.12.11/8.12.11/Submit) with ESMTP id i8DGA7nS005897 for ; Mon, 13 Sep 2004 17:10:08 +0100 Message-Id: <200409131610.i8DGA7nS005897@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk Subject: Re: globing pattern doesn't sort? In-reply-to: <20040913152958.GA19979@apartia.fr> References: <20040913152958.GA19979@apartia.fr> Date: Mon, 13 Sep 2004 17:10:07 +0100 From: Peter Stephenson X-OriginalArrivalTime: 13 Sep 2004 16:11:19.0715 (UTC) FILETIME=[4E1CC730:01C499AC] X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 Louis-David Mitterrand wrote: > Hello, > > I just tried that: > > % bzcat ../patch-2.6.9-rc1.bz2 ../patch-2.6.9-rc1-bk<1-19>.bz2 > > and obtained: > > bzcat ../patch-2.6.9-rc1.bz2 ../patch-2.6.9-rc1-bk10.bz2 ../patch-2.6.9-rc1-b > k11.bz2 ../patch-2.6.9-rc1-bk12.bz2 ../patch-2.6.9-rc1-bk13.bz2 ../patch-2.6. > 9-rc1-bk14.bz2 ../patch-2.6.9-rc1-bk15.bz2 ../patch-2.6.9-rc1-bk16.bz2 ../pat > ch-2.6.9-rc1-bk17.bz2 ../patch-2.6.9-rc1-bk18.bz2 ../patch-2.6.9-rc1-bk19.bz2 > ../patch-2.6.9-rc1-bk1.bz2 ../patch-2.6.9-rc1-bk2.bz2 ../patch-2.6.9-rc1-bk3 > .bz2 ../patch-2.6.9-rc1-bk4.bz2 ../patch-2.6.9-rc1-bk5.bz2 ../patch-2.6.9-rc1 > -bk6.bz2 ../patch-2.6.9-rc1-bk7.bz2 ../patch-2.6.9-rc1-bk8.bz2 ../patch-2.6.9 > -rc1-bk9.bz2 > > which really suprised my as I thought the whole point of the <-> pattern > was to allow for an ordered sequence to be returned (contrary to a > simple *). > > Am I mistaken in that belief? Yes. However, you can set the option numeric_glob_sort. A quick test suggests completion will obey this, which does what you want. Note that that's independent of how the matches were generated, however, so replacing <1-19> with * wouldn't change the result. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************