On 5/27/16 1:38 PM, Grisha Levit wrote: > How about removing the nameref attribute from an existing readonly > variable? This is currently allowed but perhaps for completeness it should > be forbidden?
For ksh93 compatibility, bash should prevent the readonly attribute from being removed from readonly nameref variables that have a value. namerefs that only have attributes (technically unset) can be manipulated like that. FWIW, ksh93 prohibits namerefs with values from being set to readonly. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/