On 11/27/12 8:34 AM, Roman Rakus wrote:
> On 11/26/2012 10:45 PM, Tim Friske wrote:
>> Hi folks,
> Hi
>>
>> I execute the following code in Bash version "GNU bash, Version
>> 4.2.39(1)-release (x86_64-redhat-linux-gnu)":
>>
>> function foobar {
>>    declare -rgA FOOBAR=([foo]=bar)
>> }
>> foobar
>> declare -p FOOBAR
>> # Output: declare -Ar FOOBAR='()'
> I think there should be also -g but it is not

No.  The -g option affects scoping at declaration time; it is not an
attribute.

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