From: "Nikolai Weibull" <now@bitwi.se>
To: zzapper <david@tvis.co.uk>
Cc: zsh-workers@sunsite.dk, zsh-users@sunsite.dk
Subject: Re: array not working
Date: Sun, 26 Nov 2006 14:35:16 +0100 [thread overview]
Message-ID: <dbfc82860611260535s429e4464qb7f50650e7446adb@mail.gmail.com> (raw)
In-Reply-To: <Xns98878329CBD7Ezzappergmailcom@80.91.229.5>
On 11/26/06, zzapper <david@tvis.co.uk> 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
next prev parent reply other threads:[~2006-11-26 13:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-26 12:15 zzapper
2006-11-26 12:53 ` zzapper
2006-11-26 13:35 ` Nikolai Weibull [this message]
2006-11-26 17:56 ` zzapper
2006-11-26 18:12 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dbfc82860611260535s429e4464qb7f50650e7446adb@mail.gmail.com \
--to=now@bitwi.se \
--cc=david@tvis.co.uk \
--cc=zsh-users@sunsite.dk \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).