|
| From: | Bill Gradwohl |
| Subject: | Re: [Help-bash] declare -i |
| Date: | Thu, 10 May 2012 07:08:06 -0600 |
On Wed, May 09, 2012 at 07:18:51PM -0600, Bill Gradwohl wrote:
> array[-1]=blahBlah
Array indices have to be non-negative integers. Â If you want to use
negative integers as indices, then you must do it with an associative
array (in which case -1 would be treated as a two-character string).
| [Prev in Thread] | Current Thread | [Next in Thread] |