> @pmatilai what about quoting each argument separately, 

I checked how quotes in strings are handled correctly with the changes from 
this pull request:

    $ ../rpm-build/rpm --define '%foo(D:) %{-D**}' --eval '%foo -D11  -D 22 
-D"33" -D"44 55" -D "66 77"    argument'
     -D11 -D 22 -D"33" -D"44 -D "66

The result is that the parameter `-D"44 55"` and `-D "66 77"` are not 
recognized correctly.

But the same issue also happens with the present macros related to returning 
flags and/or values 

    $ ../rpm-build/rpm --define '%foo(D:) %{-D}' --eval '%foo -D"44 55"   
argument'
    -D"44

    ../rpm-build/rpm --define '%foo(D:) %{-D*}' --eval '%foo -D "44 55"   
argument'
    "44

so there is no difference here.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2449#issuecomment-1576603621
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/2449/c1576603...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to