[Rpm-maint] [rpm-software-management/rpm] Add a man page for rpm macro processor (PR #3781)
Michal Domonkos
notifications at github.com
Fri Jun 13 14:21:18 UTC 2025
@dmnks 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}*
These should probably use the italics (underline) notation.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3781#pullrequestreview-2925012930
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3781/review/2925012930 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250613/fb438c1f/attachment.htm>
More information about the Rpm-maint
mailing list