Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Tests for globbing below protected directories
- X-seq: zsh-workers 47909
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Tests for globbing below protected directories
- Date: Wed, 3 Feb 2021 14:33:28 -0800
- Archived-at: <https://zsh.org/workers/47909>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-02/CAH%2Bw%3D7b81vX7pT2nQt9PuybOLG8n6d3npTe31NRMiGvgaQZUJA%40mail.gmail.com>
- In-reply-to: <20210203112225.GB12261@tarpaulin.shahaf.local2>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7bwDpyu0Anj5wpQ-v+ATFZ7fvqfz9RSeoE6ahRu=QVGLQ@mail.gmail.com> <20210126235605.GC25751@tarpaulin.shahaf.local2> <CAH+w=7Y7dTEVNz42zpTwmdWBeAV2UWVeYRZZjQhs5LzN2E_idg@mail.gmail.com> <20210203112225.GB12261@tarpaulin.shahaf.local2>
On Wed, Feb 3, 2021 at 3:22 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Sorry I wasn't clear. I was observing that the expansion of «*/*» does not
> include «foo/bar», even though the expansion of «*/bar» does include «foo/bar»
> and one might expect the expansion of «*/*» to be a superset of the expansion of
> «*/bar». This could be surprising.
Perhaps, but that's the definition of the difference between
"readable" and "searchable" (executable) directories. In the example
of «foo/bar», if the parent of foo is searchable but foo is only
readable, then you can expand «*» to discover foo and attempt to
"read" under «foo/» for the existence of the known name bar, but you
can't "search" foo (expand «foo/*») to discover anything, so by
extension «*/*» can't include «foo/bar».
Messages sorted by:
Reverse Date,
Date,
Thread,
Author