On 05. 05. 20 8:43, Panu Matilainen wrote:
Hmm, OTOH this is a bit questionable: macro primitives can only take arguments in the %{foo:bar} form, so perhaps the non-%{} form actually should fall through silently.
OTOH I'd argue anything that resembles a macro, even if nonexistent, should fail immediately if not used properly. That means people will be forced to stop accidentally using %stuff in their specfiles waiting for the moment somebody creates a macro of that name.
If we want to avoid mass breakage, maybe at least issue a waening.
I'd consider this useful:
warning: unescaped % in line 666: %HH, macro %HH doesn't exists
As a side note, I don't consider this useful:
warning: extra tokens at the end of %endif directive in line 1073: %endif # with tests