Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Is this a bug?
- X-seq: zsh-users 27670
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Perry Smith <pedz@xxxxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Is this a bug?
- Date: Tue, 19 Apr 2022 19:13:42 +0200
- Archived-at: <https://zsh.org/users/27670>
- In-reply-to: <CAH+w=7ZPORLXe2VrkLPwJk=0LH+gnRjqZ5kLq+J9mAog=reYaQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <F5B10854-2086-43AE-9077-EC071034BFBC@easesoftware.com> <CAH+w=7aF2YLcsc2upXQnMosacNZ5SffhaOa0g-W7t73zhy=iOw@mail.gmail.com> <292BA5B4-7D2C-4D2F-8C45-EE599D4A43D6@easesoftware.com> <CAH+w=7ZPORLXe2VrkLPwJk=0LH+gnRjqZ5kLq+J9mAog=reYaQ@mail.gmail.com>
On 4/19/22, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Tue, Apr 19, 2022 at 5:34 AM Perry Smith <pedz@xxxxxxxxxxxxxxxx> wrote:
>>
>> Now I need to go read zshall and find out how to do “all except
>> ‘Volumes’”
>
> I don't think it's possible in any straightforward way.
> ((^Volumes)/)# can match the empty string, so you just end up
> searching into Data//Volumes (note doubled slash) instead. And
> **/*~Volumes(D) doesn't filter until after the recursion.
Hmm?
% mkdir -p {a,Volumes}/{b,Volumes}/{c,Volumes}
% print -l ((^Volumes)/)#
a/
a/b/
a/b/c/
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author