help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] declare -i


From: Greg Wooledge
Subject: Re: [Help-bash] declare -i
Date: Thu, 10 May 2012 08:08:49 -0400
User-agent: Mutt/1.4.2.3i

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).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]