From: steve@miranova.com (Steven L. Baur)
To: zsh-users@math.gatech.edu
Subject: Re: <> doesn't sort numerically
Date: 13 Nov 1995 10:29:51 -0800 [thread overview]
Message-ID: <m2ivkoqsf4.fsf@diana.miranova.com> (raw)
In-Reply-To: P.Stephenson@swansea.ac.uk's message of 13 Nov 1995 00:14:15 -0800
>>>>> "Peter" == P Stephenson <P.Stephenson@swansea.ac.uk> writes:
Peter> 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.
Peter> You have to set the option `numericglobsort'. This
Peter> actually means you get the same result however the numbers
Peter> are matched, with * or <> for example. I think this was
Peter> some unusual attempt at consistency.
O.K. Thanks. The version of the manual I was looking at, made no
mention of this option in the globbing section.
Peter> Perhaps it's actually a bit counterintuitive. Would it
Peter> actually be more sensible for <> always to produce globbing
Peter> in numerical order? I haven't looked at the source but
Peter> presumably it's not too hard.
Yes. Especially since a semi-clueless person could always bruteforce
the current behavior with $(ls <>). Although, I suppose, the same
could be said for $(sort -n <>).
Thank you Thorsten (private mail), and Peter for responding.
--
steve@miranova.com baur
next reply other threads:[~1995-11-13 19:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-13 18:29 Steven L. Baur [this message]
-- strict thread matches above, loose matches on Subject: below --
1995-11-13 4:45 Steven L. Baur
1995-11-13 8:14 ` P.Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ivkoqsf4.fsf@diana.miranova.com \
--to=steve@miranova.com \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).