Re: assoc vs array append

2023-08-04 Thread Chet Ramey
On 8/2/23 2:11 AM, Grisha Levit wrote: If an indexed array is set via compound assignment, its values are cleared at the start so any arithmetic expansions in the assignment that reference the array and any [ind]+= assignments are evaluated using the newly assigned values. However, when

assoc vs array append

2023-08-02 Thread Grisha Levit
If an indexed array is set via compound assignment, its values are cleared at the start so any arithmetic expansions in the assignment that reference the array and any [ind]+= assignments are evaluated using the newly assigned values. However, when assigning associative arrays, any previously