On 2/13/24 12:41 PM, Grisha Levit wrote:
On Wed, Jan 31, 2024, 14:10 Chet Ramey <[email protected]
<mailto:[email protected]>> wrote:
Well, is this a "my arm hurts when I do this" problem, or should bash
restrict the types of attributes that can be set on readonly variables?
For the attributes that only affect future assignments ([iluc]), I think
think it makes sense to either (a) restrict the ability to change these
attributes on readonly variables or (b) make internal assignments that
force new values on readonly variables ignore such attributes.
Let's say we take the approach of restricting attribute changes on readonly
variables to export/trace/local.
Should it be an error to attempt to set other attributes (it already is
with nameref), or should declare silently ignore it?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
