Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
wrong array range with (r) flag on scalar?
- X-seq: zsh-users 19972
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: wrong array range with (r) flag on scalar?
- Date: Thu, 5 Mar 2015 16:30:00 +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
Hi,
Looks like this is wrong:
localhost% a='hello world'
localhost% print $a[(r)h?]
h
localhost% print $a[(r)h?,(r)w?]
hello wo
localhost%
In the range, the end should be "w" and the result should be "hello w"?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author