Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: indirect array element assignment?
- X-seq: zsh-users 27861
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Anthony Heading <ajrh@xxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: indirect array element assignment?
- Date: Sat, 2 Jul 2022 11:23:36 -0700
- Archived-at: <https://zsh.org/users/27861>
- In-reply-to: <CAH+w=7YCZDE3OCFakdGfxEptnM=8zwvG3PBEH-FnSi+=oTM7pA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <11ca04c9-1503-4cd2-a44b-635dc53e43a8@www.fastmail.com> <CAH+w=7YCZDE3OCFakdGfxEptnM=8zwvG3PBEH-FnSi+=oTM7pA@mail.gmail.com>
On Sat, Jul 2, 2022 at 11:13 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> The syntax, if it worked, would be ${(P)v[3]::=cherry}
I'm sorry, I just realized that's wrong. $v is a scalar, so v[3] is
the letter "u" (third character of "fruits") and this assigns to the
variable $u.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author