On 12/14/14 4:44 PM, Stephane Chazelas wrote:

> There's still a (security) issue with
> 
> declare -x/-l/-r
> that may still be used in non-function contexts (not "export" or
> "readonly"), and as result for things like:
> 
> saved=$(export -p var)
> ...
> eval "$saved"
> 
> And with declare -g in functions, so probably still worth
> addressing.

What's your proposal?  Let's see if we can get to something concrete.
Something like what I proposed in one of my previous messages would
probably work to make

declare -a var=value

closer to

declare -a var; var=value

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