zsh-users
 help / color / mirror / code / Atom feed
From: P.Stephenson@swansea.ac.uk
To: steve@miranova.com (Steven L. Baur)
Cc: zsh-users@math.gatech.edu (Zsh users list)
Subject: Re: <> doesn't sort numerically
Date: Mon, 13 Nov 95 08:14:15 +0000	[thread overview]
Message-ID: <438.9511130814@pygmy.swan.ac.uk> (raw)
In-Reply-To: "steve@miranova.com"'s message of "12 Nov 95 20:45:14 PST."             <m2ka55jf6t.fsf@diana.miranova.com>

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 <pws@ifh.de>       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.


  reply	other threads:[~1995-11-13  8:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-13  4:45 Steven L. Baur
1995-11-13  8:14 ` P.Stephenson [this message]
1995-11-13 18:29 Steven L. Baur

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=438.9511130814@pygmy.swan.ac.uk \
    --to=p.stephenson@swansea.ac.uk \
    --cc=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).