[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: declare -A +A
From:       Chet Ramey <chet.ramey () case ! edu>
Date:       2024-02-13 16:24:10
Message-ID: 2bbee925-5a64-488e-a85c-e2766c640b4a () case ! edu
[Download RAW message or body]

On 2/12/24 5:24 PM, Koichi Murase wrote:
> 2024年2月13日(火) 6:13 Chet Ramey <chet.ramey@case.edu>:
>> Only for indexed and associative arrays, since those are the attributes
>> that cause changes in the underlying value storage format. That's different
>> than turning the integer attribute on and off, for instance.
>>
>> Should it be an actual error, or should the shell just cancel out the
>> attribute change requests and go on? What do folks think?
> 
> I think it can be a usage error; it doesn't do anything on the
> variable (i.e. doesn't make it an associative array) and outputs an
> error message.

I agree; I'll make it a usage error.

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic