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

Re: [PATCH] Tests for globbing below protected directories



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