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: Mart Frauenlob
Subject: Re: Negative indexes in ${arr[@]:off:length}
Date: Wed, 29 Jun 2011 14:05:27 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11

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?

$ arr=(a b c)
$ for x in 0 1 2 3; do printf "<%s>\n" "${arr[x]}"; done
<a>
<b>
<c>
<>



reply via email to

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