bug-bash
[Top][All Lists]
Advanced

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

Re: integer variable that unsets itself causes segfault


From: Oğuz
Subject: Re: integer variable that unsets itself causes segfault
Date: Sat, 9 Aug 2025 08:09:15 +0300

On Friday, August 8, 2025, Oğuz <oguzismailuysal@gmail.com> 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


reply via email to

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