zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [PATCH] Tests for globbing below protected directories
Date: Wed, 3 Feb 2021 11:22:25 +0000	[thread overview]
Message-ID: <20210203112225.GB12261@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <CAH+w=7Y7dTEVNz42zpTwmdWBeAV2UWVeYRZZjQhs5LzN2E_idg@mail.gmail.com>

Bart Schaefer wrote on Mon, Feb 01, 2021 at 18:45:15 -0800:
> On Tue, Jan 26, 2021 at 3:56 PM Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> >
> > 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'm not sure what you mean here.  There's no comparison of foo/* to
> foo/file ... the test case is comparing f*/* to f*/file

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.

> Does that mean there's a test case missing?

I don't know of a missing test case.

Cheers,

Daniel


  reply	other threads:[~2021-02-03 11:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-25  0:15 Bart Schaefer
2021-01-26 23:56 ` Daniel Shahaf
2021-02-02  2:45   ` Bart Schaefer
2021-02-03 11:22     ` Daniel Shahaf [this message]
2021-02-03 22:33       ` Bart Schaefer
2021-02-03 23:06         ` Bart Schaefer
2021-02-04 13:09           ` Daniel Shahaf
2021-02-04 21:34             ` Bart Schaefer
2021-02-06 12:15               ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210203112225.GB12261@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).