On 2/17/12 2:51 PM, Mike Frysinger wrote:
> can't tell if this is a bug or a feature.
> 
> FOO= BAR=bar
> : ${FOO:=${BAR}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
> echo $FOO
> 
> i'd expect an error, or FOO to contain those excess braces.  instead, FOO is 
> just "bar".

Neither.  That's just how parameter expansion works.  The braces are
contained in the remainder of the word expansion.

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