Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: proxy name for array
On Tue, Jan 9, 2024 at 4:54 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
>> proxy_assign="${proxy}[2]"
>> : ${(P)proxy_assign::=TWO}
Actually I just thought of a much more straightforward way to do this.
set -A "${proxy}[2]" TWO
I had always thought "set -A" would complain about needing an
identifier, there, but it doesn't, and the semantics of assigning an
array to an array element make this work.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author