[Rpm-maint] [rpm-software-management/rpm] Add a man page for rpm macro processor (PR #3781)

Panu Matilainen notifications at github.com
Mon Jun 16 07:08:33 UTC 2025


@pmatilai commented on this pull request.



> +Macro expansions can recurse up to 64 levels.
+
+## Shell expansion
+Shell expansion can be performed using *%(*_shell command_*)*.
+_shell_command_ is expanded before executing it with _/bin/sh_, whose output
+becomes the expansion of the macro. The trailing newline is deleted.
+
+Example:
+```
+%(echo aa-bb-cc | tr '-' '.')
+```
+
+## Conditional expansion
+The macro processor supports testing whether a macro is defined or not.
+
+*%{?macro_name:value}*

Oh indeed. And, they should be uppercase, like such placeholders everywhere. 
I knew there was something wrong with this section but couldn't quite put my finger on it :sweat_smile: 

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

Message ID: <rpm-software-management/rpm/pull/3781/review/2930870438 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250616/51b5a496/attachment-0001.htm>


More information about the Rpm-maint mailing list