[Rpm-maint] [rpm-software-management/rpm] How to expand user possibly non-existent user constructed variable name? (Discussion #3411)

Vít Ondruch notifications at github.com
Tue Oct 29 17:29:05 UTC 2024


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/11090540 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241029/24fdb0ba/attachment.html>


More information about the Rpm-maint mailing list