It's a bug alright. I actually just stumbled on that code a couple of days ago
thinking this doesn't look right. It isn't.
It's not just multiple identical options, it's any local macro multiply
defined, issue being that freeArgs() only ever pops once. Easily reproduced
with eg
> rpm --define "aa 0" --define "my() %{define:aa 1} %{define:aa 2}" --eval
> "%my" --eval "%aa"
> warning: Macro %aa defined but not used within scope
>
>1
It should "obviously" output 0.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3056#issuecomment-2074090243
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3056/2074090...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint