Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: array not working
- X-seq: zsh-users 11034
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: array not working
- Date: Sun, 26 Nov 2006 14:35:16 +0100
- Cc: zsh-workers@xxxxxxxxxx, zsh-users@xxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=fl4ZiJ6p+xPujnPtuU9PasDWMgch90jsWBWhuR4CRy9MHVXPKuJ91O2STl8HvZXrCb+/gVGR8PizrEUZ4TcM0bbKVnVo/IV1WYbQxCkWFZ1latHlONiTzJE+Dt16ES/Lpkdj+mZyjaS88aRQzOC1cuHshHIiUiEv8Aa+A+6Xg6Q=
- In-reply-to: <Xns98878329CBD7Ezzappergmailcom@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns98877CBF8A380zzappergmailcom@xxxxxxxxxxx> <Xns98878329CBD7Ezzappergmailcom@xxxxxxxxxxx>
- Sender: nikolai.weibull@xxxxxxxxx
On 11/26/06, zzapper <david@xxxxxxxxxx> wrote:
Started new shell and problem went away, but arrays now seem to be
indexed from 1 rather than zero??
From zshparam(1):
Individual elements of an array may be selected using a subscript. A
subscript of the form `[exp]' selects the single element exp, where exp
is an arithmetic expression which will be subject to arithmetic expan-
sion as if it were surrounded by `$((...))'. The elements are numbered
beginning with 1, unless the KSH_ARRAYS option is set in which case
they are numbered from zero.
And this has, as far as I know, always been the case.
nikolai
Messages sorted by:
Reverse Date,
Date,
Thread,
Author