Re: What does "%if 0%{?..." mean

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

 



On Sat, Jan 17, 2009 at 10:42:32PM -0800, Jonathan Ryshpan wrote:

> I surmise from this that 
> 	%if 0%{?build_jack_svn}
> is *always* true, since 
> 	0%{?build_jack_svn}
> always has a value.

If "0%{?build_jack_svn}" expands to "0" (if %{build_jack_svn} is not
defined) or "00" (if %{build_jack_svn} is defined as "0"), the %if
is evaluated as "false" as the numeric value is zero.

-- 
-- 
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux