Re: New array_expand_once option

2023-06-13 Thread alex xmb ratchev
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

New array_expand_once option

2023-06-13 Thread Chet Ramey
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