On Wed, Apr 7, 2021 at 12:20 AM Ilkka Virta <itvi...@gmail.com> wrote:
> What konsolebox said about a[$k]=() works in my Zsh for indexed arrays, but
> not associative ones.
> (It replaces an array slice, so can also be used to insert elements in the
> middle.)

Bash can adopt this. Also if Bash could just store associative array
values as a list to preserve store order and stop expanding
"${array[@]}" based on the sorted order of the keys, then the slice
function can also be applied there. It's not essentially helpful but
there would be consistency between the indexed array and associative
array.

-- 
konsolebox

Reply via email to