On 9/30/22 7:15 AM, Koichi Murase wrote:
2022年9月30日(金) 19:50 Koichi Murase <myoga.mur...@gmail.com>:
2022年9月30日(金) 19:37 Emanuele Torre <torreemanue...@gmail.com>:
In bash-5.2, using the ${parameter@Q} parameter expansion with an unset
parameter, in an array subscript, in an arithmetic context, causes a
segmentation fault.
It seems even ((y[$a])) in arithmetic contexts causes a segfault:
I attach a patch [0001-subst-handle-null-substring.patch].
Thanks for the diagnosis and patch.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/