Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Recursive globbing shorthand (a la **.c)
- X-seq: zsh-users 20838
- From: Dominik Vogt <vogt@xxxxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Recursive globbing shorthand (a la **.c)
- Date: Wed, 28 Oct 2015 07:57:02 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: vogt@xxxxxxxxxxxxxxxxxx
Most of the time, I use recursive globbing to find files of
certain types, e.g.
$ ll **/*.c
With the zsh here (4.3.17), recursive globbing works only
with a plain ** anyway (i.e. in "**x" and "x**" the ** works just
like a plain "*"). So, is it possible (or a useful future
feature) to make "**" imply a trailing "/*" if not with a trailing
pattern? Then we could type
$ ll **.c
as a shorthand, and the "traditional" uses would work without
change (e.g. **/*.c or **/foo).
(Note that on German keyboards, "/" and "*" are very awkward to
type in a sequence because both need the left shift key held and
the keys for the right hand are very far apart, so this is really
a usability issue.)
Ciao
Dominik ^_^ ^_^
Messages sorted by:
Reverse Date,
Date,
Thread,
Author