[Rpm-maint] [rpm-software-management/rpm] Implement support for literal and one-shot macro modifiers (PR #4129)

Vít Ondruch notifications at github.com
Tue Mar 3 19:25:12 UTC 2026


@voxik 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

Could some example be included somewhere?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4129#pullrequestreview-3884606849
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/4129/review/3884606849 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260303/2053f7fa/attachment.htm>


More information about the Rpm-maint mailing list