[Top][All Lists]

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

Re: excess braces ignored: bug or feature ?

From: Greg Wooledge
Subject: Re: excess braces ignored: bug or feature ?
Date: Fri, 17 Feb 2012 14:55:13 -0500
User-agent: Mutt/

On Fri, Feb 17, 2012 at 02:51:27PM -0500, 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".

imadev:~$ : ${FOO:=BAR}qqqqqqqqqqqq
imadev:~$ echo "$FOO"

It looks OK to me.  You've got an argument word which happens to contain
a substitution-with-side-effects as part of it.

reply via email to

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