[Rpm-maint] [rpm-software-management/rpm] rpm expands macro args twice (#217)

Panu Matilainen notifications at github.com
Thu May 18 09:20:57 UTC 2017


Funny how things seem clearer without a headache...

Obviously one needs to be able to pass escaped macros as arguments, another example to show current non-sensical behavior:
```
$ rpm --define "%foo() %1" --eval "%foo %{_lib}" --eval "%foo %%{_lib}"
lib64
lib64
```

I have a fix for that, just trying to decide whether the "escape mode" would ever be useful outside macro internals. The %nil case is interesting, the current behavior where the argument shifts by one is certainly not sensical.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/217#issuecomment-302349680
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170518/2e4e5a1f/attachment.html>


More information about the Rpm-maint mailing list