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

Re: [PATCH] Allow globbing with unreadable parent directories



(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