@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/c1903537...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to