On Friday, August 8, 2025, Oğuz <[email protected]> wrote: > declare -in x
There's also this:
$ declare -in x=a[x]
$ echo $?
1
$ declare -p x
bash: declare: x: not found
The error here shouldn't be silent. I can see in gdb that the memory
allocated for the `SHELL_VAR' struct for `x' gets freed while resolving
`a[x]' but I'm not familiar enough with the codebase to debug further
--
Oğuz
