help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Anthony Heading <ajrh@ajrh.net>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: indirect array element assignment?
Date: Sat, 2 Jul 2022 11:23:36 -0700	[thread overview]
Message-ID: <CAH+w=7Z2Q45xF=zeyBxr15O=HC7b0r6OGrZJVw6O0rPO_G6DoQ@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7YCZDE3OCFakdGfxEptnM=8zwvG3PBEH-FnSi+=oTM7pA@mail.gmail.com>

On Sat, Jul 2, 2022 at 11:13 AM Bart Schaefer <schaefer@brasslantern.com> 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.

  reply	other threads:[~2022-07-02 18:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-02 10:33 Anthony Heading
2022-07-02 18:13 ` Bart Schaefer
2022-07-02 18:23   ` Bart Schaefer [this message]
2022-07-03  2:28   ` Anthony Heading
2022-07-03  3:41     ` Bart Schaefer
2022-07-03 16:43       ` Anthony Heading

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7Z2Q45xF=zeyBxr15O=HC7b0r6OGrZJVw6O0rPO_G6DoQ@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=ajrh@ajrh.net \
    --cc=zsh-users@zsh.org \


* 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


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).