lRespublica left a comment (rpm-software-management/rpm#3663)
Yes, @pmatilai accurately described my motivation. I think 'trim' might be the
optimal solution for multi-line macros using the %{...} syntax.
'Expand' has side effects that may not always be obvious when used and may lead
to unexpected results. Here’s another example illustrating the difference
between 'trim' and 'expand'.
```
%define aaabbb TEST
%define tst1 %aa
%define tst2 abbb
%define val_trim %{trim: %tst1%tst2}
%define val_expand %{expand: %tst1%tst2}
1: %val_trim
2: %val_expand
```
Expands to
```
1: %aaabbb
2: TEST
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3663#issuecomment-2750573699
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3663/c2750573...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint