bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (( arr[${var@Q}] )) makes the shell crash in bash-5.2


From: Koichi Murase
Subject: Re: (( arr[${var@Q}] )) makes the shell crash in bash-5.2
Date: Fri, 30 Sep 2022 19:50:07 +0900

2022年9月30日(金) 19:37 Emanuele Torre <torreemanuele6@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:

$ bash-5.2 -c '((y[$a]))'
Segmentation fault (core dumped)

--
Koichi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]