Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: <> doesn't sort numerically
- X-seq: zsh-users 131
- From: P.Stephenson@xxxxxxxxxxxxx
- To: steve@xxxxxxxxxxxx (Steven L. Baur)
- Subject: Re: <> doesn't sort numerically
- Date: Mon, 13 Nov 95 08:14:15 +0000
- Cc: zsh-users@xxxxxxxxxxxxxxx (Zsh users list)
- In-reply-to: "steve@xxxxxxxxxxxx"'s message of "12 Nov 95 20:45:14 PST." <m2ka55jf6t.fsf@xxxxxxxxxxxxxxxxxx>
steve@xxxxxxxxxxxx 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 <pws@xxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author