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

Re: [PATCH] Tests for globbing below protected directories



On Wed, Feb 3, 2021 at 2:33 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> Perhaps, but that's the definition of the difference between
> "readable" and "searchable" (executable) directories.

Put more concretely:

mode | opendir(x) | stat(x/name) |
dr-- |   yes     |    no        |
dr-x |   yes      |    yes       |
d--x |   no       |    yes       |

It's that first one that produces your surprising result, globbing
only returns names it can stat() and only pattern-matches in
directories it can opendir().




Messages sorted by: Reverse Date, Date, Thread, Author