Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: indirect array element assignment?



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