[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: COMP_WORDS, namerefs and readonly variables
From:       Chet Ramey <chet.ramey () case ! edu>
Date:       2017-02-25 21:21:59
Message-ID: e5ebe435-34b8-0b4d-90fe-5eee26efe736 () case ! edu
[Download RAW message or body]

On 2/24/17 6:39 PM, Grisha Levit wrote:
> In bind_comp_words, the readonly attribute is unconditionally removed from
> COMP_WORDS, even if that variable is a nameref.  This allows unsetting the
> readonly attribute on any arbitrary variable.

I wonder if the best thing is to just not allow COMP_WORDS to be a nameref.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic