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

Re: Unreadable directories aren't included in glob expansion

Stephane Chazelas wrote on Thu, Jan 09, 2020 at 17:22:22 +0000:
> Now, zsh seems to be the only shell where */ excludes the
> non-*searchable* (it does include the non-readable ones provided
> you have search access).
> It might make it the only  POSIX compliant shell as I have a
> vague recollection it's meant to give the same result as */.,
> but that could very  well be a bad recollection, and if that was
> a POSIX requirement, that's probably one that should change.

So there isn't any need to make the bugfix conditional on some POSIX_* option
being unset, right?

> IMO, */ should give the same list as *(-/) (with some /
> appended), that is expand to the files that can be determined to
> be of type "directory" after symlink resolution (determined from
> the result of stat(), not lstat()) for consistency with other
> shells.



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