From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: suggestion for new glob modifiers
Date: Mon, 25 Jan 1999 13:51:50 +0100 [thread overview]
Message-ID: <9901251251.AA35437@ibmth.df.unipi.it> (raw)
In-Reply-To: "Sven Wischnowsky"'s message of "Mon, 25 Jan 1999 12:06:56 NFT." <199901251106.MAA12163@beta.informatik.hu-berlin.de>
Sven Wischnowsky wrote:
>
> 1) A new glob modifier that allows to make the resulting list sorted
> not only by name. The syntax is `Oc' where `c' is a character
> saying how the list should be sorted:
>
> `n' - by name
> `L' - by size (length)
> `l' - by number of links
> `a', `m', ac' - by access, modification, or inode change time
>
> The modifiers `^' and `-' are respected, so `*(^OL^On)' gives you a
> list sorted largest file first, with files with the same size being
> sorted by name in ascending order.
>
> 2) The second change is that you can give subscripts in modifier lists
> which say which matches you want to get.
This is excellent --- I've been using completion trickery for things
like this, but this is very much more flexible.
One minor question is whether (Om) etc. should really be oldest first.
I can see that's logical --- `time order' certainly implies oldest
first --- but unfortunately it's the other way round from ls -t, which
is the order I've grown to expect. I can easily get used to using ^,
though.
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
next prev parent reply other threads:[~1999-01-25 12:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-25 11:06 Sven Wischnowsky
1999-01-25 12:51 ` Peter Stephenson [this message]
[not found] <199901251328.OAA16371@beta.informatik.hu-berlin.de>
1999-01-25 13:34 ` Peter 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=9901251251.AA35437@ibmth.df.unipi.it \
--to=pws@ibmth.df.unipi.it \
--cc=zsh-workers@sunsite.auc.dk \
/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).