bug-bash
[Top][All Lists]
Advanced

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

Re: export/readonly unset value of target variable if passed an array re


From: Chet Ramey
Subject: Re: export/readonly unset value of target variable if passed an array reference
Date: Wed, 18 May 2016 11:03:04 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.0

On 5/17/16 8:33 PM, Grisha Levit wrote:
> |$ var=foo; declare -n ref=var[0] $ readonly ref $ declare -p var declare
> -ar var |
> 
> works even with readonly variables:

Thanks for the report.

Chet

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



reply via email to

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