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

*/ globs and non-searchable directories



Not really a bug as such but a difference from other shells:

$ mkdir -m a=x searchable
$ mkdir -m a=r readable

$ echo *(/)
readable searchable
$ echo */
searchable/

All the other shells I tried output:

$ echo */
readable/ searchable/

In any case, all the shells I tried agree with zsh on:

$ echo */.
searchable/.

(though note the bug in current versions of bash5 as discussed
on the POSIX ML:

$ bash5 -c 'echo */.'
searchable/.
$ bash5 -c 'echo */"."'
readable/.
)

-- 
Stephane



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