[Rpm-maint] [rpm-software-management/rpm] RFE: optional one-shot/cached macro expansion (#1155)
Panu Matilainen
notifications at github.com
Wed Mar 25 13:33:05 UTC 2026
pmatilai left a comment (rpm-software-management/rpm#1155)
> So mymacro<o> would expand on first use, cache the result, and immediately expand again? I find that a bit weird. I prefer an implicit <l>.
Yeah, the *result* would get expanded. Which I too find weird. That's what happens with %global, but people find that weird as well. So I really prefer the implicit `<l>` as well.
> Regarding %global/-e and : I think it should expand at definition time and mark the result as oneshot so that it caches the second expansion at macro use time.
Ack, that was my thinking as well.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1155#issuecomment-4126644492
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/1155/4126644492 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260325/c1b0341f/attachment.htm>
More information about the Rpm-maint
mailing list