This works:

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

So this is likely related to #3411. Is there chance to make it somehow more 
straight forward?

BTW this also works:

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

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

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

Reply via email to