From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from math.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with SMTP id TAA18201 for ; Mon, 13 Nov 1995 19:29:45 +1100 (EST) Received: by math.gatech.edu (5.x/SMI-SVR4) id AA29281; Mon, 13 Nov 1995 03:14:43 -0500 Old-Return-Path: Resent-Date: Mon, 13 Nov 95 08:14:15 +0000 Old-Return-Path: Message-Id: <438.9511130814@pygmy.swan.ac.uk> To: steve@miranova.com (Steven L. Baur) Cc: zsh-users@math.gatech.edu (Zsh users list) Subject: Re: <> doesn't sort numerically In-Reply-To: "steve@miranova.com"'s message of "12 Nov 95 20:45:14 PST." Date: Mon, 13 Nov 95 08:14:15 +0000 From: P.Stephenson@swansea.ac.uk X-Mts: smtp Resent-Message-Id: <"xvoEo3.0.797.dtlfm"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/131 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu steve@miranova.com wrote: > (zsh 2.6 beta 9). > > I've noticed that <> doesn't appear to order the expanded files in > numeric order. Eg. <> in a directory containing 1 2 4 9 24 will > expand as 1 2 24 4 9. This isn't completely useful behavior. > The only workaround I've found is to use a succession of ? ?? ???, etc. You have to set the option `numericglobsort'. This actually means you get the same result however the numbers are matched, with * or <> for example. I think this was some unusual attempt at consistency. Perhaps it's actually a bit counterintuitive. Would it actually be more sensible for <> always to produce globbing in numerical order? I haven't looked at the source but presumably it's not too hard. -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330 Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany.