On Wed, 24 Apr 2013 14:06:26 -0400, Tom Callaway wrote:
On 04/19/2013 05:12 AM, Alexey I. Froloff wrote:
On Fri, Apr 19, 2013 at 01:00:31PM +0400, Peter Lemenkov wrote:
Let's say someone defines a macro "_bindirmacro", and actually starts using it in a spec-files. Then there will be an ambiguity during substituting %_bindirmacro - is this %{_bindir}macro or %{_bindirmacro}? Adding brackets will resolve this.
%_bindir will never be substituted in %_bindirmacro. Another thing that comes to mind is mass greps.
You're right,
Just for the record, something like
echo "FU=BAR" > %nameconfig.ini echo "FU=BAR" > %name2.conf
still does not expand as one might think even with %{name} being define by default.
So, please use explicit braces/brackets more often than not.