2024年2月13日(火) 6:13 Chet Ramey <chet.ra...@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.