bug-bash
[Top][All Lists]
Advanced

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

Re: declare -A +A


From: Chet Ramey
Subject: Re: declare -A +A
Date: Tue, 13 Feb 2024 11:24:10 -0500
User-agent: Mozilla Thunderbird

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/




reply via email to

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