bug-bash
[Top][All Lists]
Advanced

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

Re: declare -Aa var


From: Chet Ramey
Subject: Re: declare -Aa var
Date: Tue, 13 Feb 2024 11:31:46 -0500
User-agent: Mozilla Thunderbird

On 2/7/24 1:48 AM, Grisha Levit wrote:
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

For the time being, we'll make this an error instead of `last one wins'.

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




reply via email to

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