[Fedora-packaging] Correction to guidelines on %define vs %global

Christopher Aillon caillon at redhat.com
Thu May 21 15:34:23 UTC 2009


On 05/20/2009 06:08 PM, Toshio Kuratomi wrote:
> One place this becomes apparent is parameterized macros:
> <pre>
> %build
> %global print_arg echo "Hello %1"
> %print_arg World
> </pre>
> because the %1 is evaluated when print_arg is defined, this prints
> <code>Hello</code> rather than "Hello World".

nit: there would technically be a space after Hello, so
<code>Hello </code> though that's probably not easy to see... Perhaps 
some tricks with punctuation could help.




More information about the Fedora-packaging mailing list