Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
*/ globs and non-searchable directories
- X-seq: zsh-workers 44466
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: */ globs and non-searchable directories
- Date: Fri, 28 Jun 2019 10:36:55 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=yn7f3uFcizOJO1qsyjXkqTJ2pERd4cvTFY4YmBMQ7Xo=; b=GX/gQamPAvHpwp4EVIKc05WV7EtXUG2jARBsB1afGmQHA5cwFTTYgzMTTn/GV9kAs4 1Oj3MLnsGCVFq4GTS2QmTeO0xQ8Aa9Iv8/n7YL2l0gGYvIDD3kC1Mn841w/UGWPzQzok vx4wEkzMUo8SSP0JQBhPhD3E92Ho2rKBvEbJ7V6P0ik75CKYWANuLPHO2G+NNCJ3cV9Z B8SZDTesCrx77Mb/sxzyFKyuQS5QQrkvKlJ9SN/YRIN1Wn4Pd9Ah3Lv/oCSTr0GLSGoC Dlbkj+6H2SxsZJkqmUMATNwuV0eF4b8oJ1RLHPtKJS1U0o/HMEsyhA1h5xNieYo7NLa6 lgow==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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