bug-bash
[Top][All Lists]
Advanced

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

Re: param expansion with single-character special vars in the environmen


From: Chet Ramey
Subject: Re: param expansion with single-character special vars in the environment
Date: Tue, 31 May 2016 11:12:00 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.1.0

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    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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