bug-bash
[Top][All Lists]
Advanced

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

Re: local -[aA] on dangling nameref


From: Chet Ramey
Subject: Re: local -[aA] on dangling nameref
Date: Mon, 27 Oct 2025 10:48:07 -0400
User-agent: Mozilla Thunderbird

On 10/24/25 1:01 PM, Grisha Levit wrote:
On Fri, Oct 24, 2025 at 12:55 PM Chet Ramey <chet.ramey@case.edu> wrote:

On 10/24/25 12:26 PM, Chet Ramey wrote:

I just freshly cloned the repository on macOS, switched to the devel
branch, built it and:

$ ./bash -c 'f() { local -n x; local -A x; local -p x; (local x=(z)); };
x=x f'
./bash: line 1: warning: x: circular name reference
./bash: line 1: warning: x: circular name reference
declare -Ax x=()

I get the crash on Fedora, but not macOS. I'll figure out what's going on
there.

FWIW, on macOS, if I configure with --disable-nls, I get

     declare -Anx x=()
     Segmentation fault: 11

Without that option, I get

     declare -Ax x=()

Thanks for the update. This one should be fixed in the latest push.


--
``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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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