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

wrong array range with (r) flag on scalar?



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