bug-bash
[Top][All Lists]
Advanced

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

Re: Negative indexes in ${arr[@]:off:length}


From: Maarten Billemont
Subject: Re: Negative indexes in ${arr[@]:off:length}
Date: Wed, 29 Jun 2011 18:31:06 +0200

On 29 Jun 2011, at 14:05, Mart Frauenlob wrote:
> 
> On 29.06.2011 13:42, Maarten Billemont wrote:
>> On 27 Jun 2011, at 16:25, Chet Ramey wrote:
>>> 
> [...]
>> Exactly, let's draw the array in the example:
>> 
>> arr=(a b c)
>> values:  [ a | b | c ]
>> indexes: 0   1   2   3
>> 
> [...]
> 
> 4 members?
3 members.  The index cursor precedes its member, as is commonly done when 
depicting arrays.

Apologies for mentioning the index 3 and somehow confusing you.  Note that I 
prefixed the line with the word "indexes", not "values".  I think we all know 
value a has the index 0 and value c has the index 2.


reply via email to

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