Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Allow globbing with unreadable parent directories
- X-seq: zsh-workers 47837
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Lawrence Velázquez <vq@xxxxxxxxx>
- Cc: Devin Hussey <husseydevin@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Allow globbing with unreadable parent directories
- Date: Sun, 17 Jan 2021 17:22:21 +0000
- Archived-at: <https://zsh.org/workers/47837>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-01/20210117172221.GA15871%40tarpaulin.shahaf.local2>
- In-reply-to: <8563F702-5AC3-42C7-9FF9-B736A11B1A0D@larryv.me>
- List-id: <zsh-workers.zsh.org>
- References: <CAEtFKssJf-cN_EM+=5_10seY58jqALV-YH8+z5+Lm-04v493Nw@mail.gmail.com> <CAH+w=7bn8JYPx29LPGnT4ughEt-z+-rUokUz739foP=JCY9B7g@mail.gmail.com> <CAEtFKssJVz9mr3vA_vY77m2bsrXWBKHz1qgv83jzeY0jLXzPjQ@mail.gmail.com> <8563F702-5AC3-42C7-9FF9-B736A11B1A0D@larryv.me>
(Sorry I'm late to join the party, but:)
Lawrence Velázquez wrote on Wed, Jan 13, 2021 at 20:32:58 -0500:
> > On Jan 13, 2021, at 7:27 PM, Devin Hussey <husseydevin@xxxxxxxxx> wrote:
> >
> >> On Wed, Jan 13, 2021, 5:28 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >>
> >> As far as I can tell, the patch
> >> would only cause globbing to fail in more cases, not succeed where it
> >> previously did not.
> >
> > No, that is definitely not the case.
>
> But your patch *does* cause globbing to fail in cases for which it
> currently doesn't.
>
> % mkdir -p notsearchable/{dir,DIR}
> % touch notsearchable/{dir,DIR}/file
> % chmod 600 notsearchable
> % zsh -fc 'echo notsearchable/*'
> notsearchable/DIR notsearchable/dir
> % ./zsh-patched -fc 'echo notsearchable/*'
> zsh:1: no matches found: notsearchable/*
Which unit test covers this?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author