Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
negative pattern doesn't match empty string in globbing?
- X-seq: zsh-users 19108
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: negative pattern doesn't match empty string in globbing?
- Date: Fri, 19 Sep 2014 16:04:26 +0800
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
I just notice that negative pattern like this doesn't work:
localhost% setopt extendedglob
localhost% print /usr/**/bin/zsh
/usr/bin/zsh /usr/local/bin/zsh
localhost% print /usr/^local/bin/zsh
zsh: no matches found: /usr/^local/bin/zsh
localhost% ls /usr//bin/zsh
/usr//bin/zsh
localhost%
I think if "^local" can match with empty string, then this should work.
But looks like it doesn't.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author