[Rpm-maint] [rpm-software-management/rpm] Add macro '%-x**' containing all occurrences of the flag '-x' (PR #2449)
Frank Dana
notifications at github.com
Mon Jan 22 09:03:41 UTC 2024
@rhabacker
> shows that the quoting is done by the shell and not by getopt itself. The conclusion is that something similar must be done before calling getopt in rpm to process macro parameters with quotes.
Isn't that `%quote`, like @pmatilai mentioned? Going back to your experiments (braces added to output for clarity):
```console
$ rpm --define '%foo(D:) [%{-D}]' --eval '%foo -D%{quote:44 55} argument'
[-D 44 55]
$ rpm --define '%foo(D:) [%{-D*}]' --eval '%foo -D%{quote:44 55} argument'
[44 55]
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2449#issuecomment-1903537894
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2449/c1903537894 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240122/b7e71e6c/attachment.html>
More information about the Rpm-maint
mailing list