On 4/11/12 4:12 PM, dethrophes wrote:

> I've also noticed weird behavior with "declare -gr" the r sometimes seems
> to override the g, but not specific to functions It seems to be specific
> either to the source file or to the compound statement. I haven't been able
> to figure out exactly whats going on there. I haven't been able to
> reproduce it in a simple example. this is most readily noticeable with set
> -o nounset

An example would help.  The above is supposed to create a global readonly
variable.  I suspect that you see the `global' as being `overridden'
because it's being created in a subshell environment.

Chet



-- 
``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/

Reply via email to