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

Re: Unreadable directories aren't included in glob expansion



2020-01-09 17:22:22 +0000, Stephane Chazelas:
[...]
> 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).
[...]

And conversely, it doesn't include readable dirs if they are not
searchable which can be even more surprising:

$ ls -l
total 2
drwxrwxr-x 2 chazelas chazelas 2 Jan  9 17:07 1/
dr--r--r-- 2 chazelas chazelas 3 Jan  9 17:17 2/
drwxrwxr-x 2 chazelas chazelas 2 Jan  9 17:07 3/
$ echo */
1/ 3/
$ echo */*
2/file

-- 
Stephane



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