Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Tests for globbing below protected directories
- X-seq: zsh-workers 47879
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Tests for globbing below protected directories
- Date: Tue, 26 Jan 2021 23:56:05 +0000
- Archived-at: <https://zsh.org/workers/47879>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-01/20210126235605.GC25751%40tarpaulin.shahaf.local2>
- In-reply-to: <CAH+w=7bwDpyu0Anj5wpQ-v+ATFZ7fvqfz9RSeoE6ahRu=QVGLQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7bwDpyu0Anj5wpQ-v+ATFZ7fvqfz9RSeoE6ahRu=QVGLQ@mail.gmail.com>
Bart Schaefer wrote on Sun, Jan 24, 2021 at 16:15:23 -0800:
> Does this test look as expected?
It's a little counter-intuitive that foo/* is not a superset of foo/file. The
former can't tractably discover d111/file, of course. As to whether
foo/file fall back to readdir() when the directory is readable but not
executable, I guess this was either discussed in the other thread or is
ETOOMUCHEFFORT, or possibly both — but it's too late right now for me to go
look, sorry.
Thanks for the patch, Bart.
> Note there are trailing spaces on the "print -raC 2" output, which surprised
> me but has nothing to do with the test itself.
>
The trailing spaces were eaten by something in the email delivery chain, but
they're definitely unrelated to the test itself:
% print -raC 2 x y | sed 's/$/$/'
x y $
%
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author