bug-bash
[Top][All Lists]
Advanced

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

declare -Aa var


From: Grisha Levit
Subject: declare -Aa var
Date: Wed, 7 Feb 2024 01:48:34 -0500

If given both the -a and -A flags and an existing scalar variable,
declare will assign both attributes to the variable:

    $ V=X; declare -Aa V; echo $?
    0
    $ echo ${V@a}
    aA
    $ (declare -p V)
    Segmentation fault: 11



reply via email to

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