Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Is this a bug?



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