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

string range between 1 and 0.



Hi. I wondered that $var[1,0] is expanded to first character of v.

Z(2):akr@localhost% zsh -f
localhost% v=abcd
localhost% echo $v[1,0]
a
localhost% echo $v[2,1]

localhost% echo $v[2,0]

localhost% 

I think that $v[1,0] should be null string as $v[2,0].
Is this intentional behaviour?
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author