On 6/16/23 1:02 AM, Wiley Young wrote:

Bash Version: 5.2
Patch Level: 15
Release Status: release

Description:
    `verb=(--) declare -ax verb` causes bash to crash and closes the active
terminal tab. strace output includes this error: "getpeername(0,
0x7ffc74d185d0, [16])    = -1 ENOTSOCK (Socket operation on non-socket)"

Thanks for the report. The ENOTSOCK error is a red herring; it's the shell
checking whether or not it's being run by ssh, and isn't related to this.

The real issue is that the temporary environmnent assignment needs to be
converted into an array (declare -ax) and then propagated back to the
previous scope with attributes and value intact. It will be fixed in the
next devel branch push.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to