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

Re: Subscript of negatively-subscripted array element gives incorrect result



On Mar 25,  7:56pm, Jonathan Hankins wrote:
}
} I am getting different results taking a substring of the same array element 
} when I index it negatively than when I index it positively.

At first glance, it appears to be the case that positive-indexing returns
a scalar whereas negative indexing returns a one-element array.



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