The subject is likely wrong, because I don't understand the mechanism. But for
some reason, it does not seem that the value provided by `%{expand:...}` is
properly used by `%{sub:...}`
**Expected behavior**
~~~
$ rpm -D "name string-io" -D "string_io_prerelease .dev" --eval '%{sub
%{expand:%{%{quote:?}%{gsub %{name} - _}_prerelease}} 2 -1}'
dev
~~~
**Output**
~~~
$ rpm -D "name string-io" -D "string_io_prerelease .dev" --eval '%{sub
%{expand:%{%{quote:?}%{gsub %{name} - _}_prerelease}} 2 -1}'
{?string_io_prerelease}
~~~
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3412
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint