Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'for' sorted?
- X-seq: zsh-users 28122
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: 'for' sorted?
- Date: Thu, 22 Sep 2022 09:30:00 -0700
- Archived-at: <https://zsh.org/users/28122>
- In-reply-to: <YyyKlvNvxCYUNoqn@harpo.local>
- List-id: <zsh-users.zsh.org>
- References: <49e39986-c9d4-fc8a-3ee2-f484f44cff4c@eastlink.ca> <CAFOazANc=koWaYxdXAK2x7rQJtsTxhaxY23doNwgZYmAQ6xfFw@mail.gmail.com> <b3f80f38-2fd3-6594-ab63-e9da5ce04b7c@eastlink.ca> <YyyKlvNvxCYUNoqn@harpo.local>
On 2022-09-22 09:17, Andreas Kusalananda Kähäri wrote:
The number at the end of device files are not version numbers.
Obviously! But version sort gives the kind of order I'm looking for.
print -l /dev/sda*(n)
or,
setopt NUMERIC_GLOB_SORT
print -l /dev/sda*
Thanks, that seems just as effective.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author