On 5/27/23 12:39 PM, Wiley Young wrote:

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

Description:

A syntax error on a variable assignment lead to $x being unset when `enable
-n "$x" was executed, which produced this error message:
   ./test.sh: line 22: enable: cannot find _struct in shared object :
/usr/bin/bash: undefined symbol: _struct

Thanks for the report. dlopen will succeed with a null pathname, but the
object will (obviously) not have the required loadable builtin info. Best
not to call it with a null pathname at all.

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