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

Re: Treatment of illegal indices



Bernd Eggink wrote:
>Andrew Main wrote:
>> That's a deliberate feature.
>
>Huh? What's the sense in that??

No one has suggested anything better for it to do.  This behaviour
is consistent with the behaviour of foo[i,j]=bar for i<=j -- the new
element is immediately preceded by the old $foo[i-1], and followed by
the old $foo[j+1].

-zefram



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