|
| From: | Chet Ramey |
| Subject: | Re: PEs in arithmetic context array subscript cause SEGFAULT (was: (( arr[${var@Q}] )) makes the shell crash in bash-5.2) |
| Date: | Fri, 30 Sep 2022 09:13:47 -0400 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 |
On 9/30/22 6:41 AM, Emanuele Torre wrote:
On 30/09/2022, Emanuele Torre <torreemanuele6@gmail.com> wrote: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.Actually, using any parameter expansion with an unset parameter in an array subscript causes a segmentation fault:
Thanks for the report.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
| [Prev in Thread] | Current Thread | [Next in Thread] |