[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:34:52 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}*
There was a similar issue with the expression expansion section, fixed that as well.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3781#discussion_r2149243580
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3781/review/2930941568 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250616/4ee4f86f/attachment-0001.htm>
More information about the Rpm-maint
mailing list