[PATCH build 3/3] Remove superfluous braces around variables.

Thomas Dickey dickey at his.com
Wed Sep 15 13:51:10 PDT 2010


On Wed, 15 Sep 2010, Adrian Bunk wrote:

> On Wed, Sep 15, 2010 at 08:58:27AM -0400, Trevor Woerner wrote:
>> From: Trevor Woerner <twoerner at gmail.com>
>>
>> Remove the '{' and '}' braces around variable dereferences
>> which aren't necessary for shell parsing.
>> ...
>
> Why?
>
> When you use them you are on the safe side.
>
> And I'd also say the code is more readable with them.

certainly - even though I know it works, this

 	$foo.$bar

is less readable than

 	${foo}.${bar}

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


More information about the xorg-devel mailing list