[Rpm-maint] [rpm-software-management/rpm] Implement support for literal and one-shot macro modifiers (PR #4129)
Panu Matilainen
notifications at github.com
Wed Mar 4 07:04:30 UTC 2026
@pmatilai commented on this pull request.
> @@ -58,6 +58,14 @@ of alphanumeric characters and the underscore (*\_*), and must be at least
two characters in length. The body is (re-)expanded on each macro invocation.
Macro names and options are case-sensitive.
+Macro behavior can be altered by supplying modifiers: (Added: 6.1.0)
+
+ _NAME_*<*_MODIFIERS_*>* _BODY_
+
+Supported modifiers are:
+- *l*iteral - macro body is literal, *%* is not processed when expanding
+- *o*neshot - macro body becomes it's own literal expansion on first use
Oh, indeed. There needs to be a concrete example of the syntax somewhere. This kinda gets blurred when writing tests, "oh but there are plenty of examples?" but that's not documentation.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4129#discussion_r2882172606
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4129/review/3887558968 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260303/6193895a/attachment.htm>
More information about the Rpm-maint
mailing list