Re: Correction to guidelines on %define vs %global

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

 



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.

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux