Actually, it seems that I have found a cure:

~~~
$ rpm -D "name foo" -D "string_io_prerelease .dev" --eval 
'%{expand:%{%{quote:?}%{gsub %{name} - _}_prerelease}}'

$ rpm -D "name string-io" -D "string_io_prerelease .dev" --eval 
'%{expand:%{%{quote:?}%{gsub %{name} - _}_prerelease}}'
.dev
~~~

But why the `quote` macro makes a difference?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3411#discussioncomment-11090540
You are receiving this because you are subscribed to this thread.

Message ID: 
<rpm-software-management/rpm/repo-discussions/3411/comments/11090...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to