On Tue, Jun 13, 2023, 22:21 Chet Ramey wrote:
> The latest push to the devel branch extends the assoc_expand_once
> semantics to indexed array variables. This means that a construct
> like
>
> export subscript='$(uname >&2 ; echo 0)'
> shopt -s assoc_expand_once
> printf -v a["$subscript"] %s hi
The latest push to the devel branch extends the assoc_expand_once
semantics to indexed array variables. This means that a construct
like
export subscript='$(uname >&2 ; echo 0)'
shopt -s assoc_expand_once
printf -v a["$subscript"] %s hi
declare -p a
will no longer run `uname' and assign "hi" to