Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Unreadable directories aren't included in glob expansion
- X-seq: zsh-users 24626
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Unreadable directories aren't included in glob expansion
- Date: Fri, 10 Jan 2020 07:27:53 +0000
- In-reply-to: <20200109172222.uwgyjouab45zk2gf__13897.4118557357$1578604026$gmane$org@chaz.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20200109154313eucas1p13b2e5465f21d059ea08537012e140236@eucas1p1.samsung.com> <20200109154145.rqksfenozx6745rn@tarpaulin.shahaf.local2> <1578585101.6028.13.camel__24021.2781982095$1578585228$gmane$org@samsung.com> <20200109172222.uwgyjouab45zk2gf__13897.4118557357$1578604026$gmane$org@chaz.gmail.com>
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