bug-bash
[Top][All Lists]
Advanced

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

Re: declare a="$b" if $a previously set as array


From: Chet Ramey
Subject: Re: declare a="$b" if $a previously set as array
Date: Mon, 22 Dec 2014 20:09:50 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 12/16/14 7:30 AM, Stephane Chazelas wrote:

>>  * This solves the problem without breaking backwards compatibility and 
>> allows
>>    declare -p output to continue to function.
> [...]
> 
> Well, if "declare -p" continues to function which is not what I
> understand your proposal to do, then:

You don't have to assume that declare -p will continue to quote the
rhs of the assignment statement when printing array values.

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