Re: bash memory leak when querying associative array for nonexisting element

2022-11-21 Thread Chet Ramey
On 11/20/22 8:02 AM, Ralf Oehler wrote: Bash Version: 5.2 Patch Level: 2 Release Status: release Description: I want to read an associative array. Like so: y="${aa[$i]}" If aa contains the element queried, then everything works as expected If aa does not contain such an

Re: bash memory leak when querying associative array for nonexisting element

2022-11-20 Thread Koichi Murase
2022年11月20日(日) 23:07 Ralf Oehler : > Bash Version: 5.2 > Patch Level: 2 > Release Status: release > > Description: > [Detailed description of the problem, suggestion, or > complaint.] > I want to read an associative array. Like so: y="${aa[$i]}" > If aa contains

bash memory leak when querying associative array for nonexisting element

2022-11-20 Thread Ralf Oehler
Configuration Information [Automatically generated, do not change]: Machine: aarch64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -mbranch-protection=standard -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables