[Rpm-maint] [rpm-software-management/rpm] Any way to work around %gsub's (Lua-originating) escaping requirements regarding the input string? (Discussion #3826)

Frank Dana notifications at github.com
Sat Jun 21 05:26:32 UTC 2025


Although, here's a related question: Since Lua _does_ use `%` as its pattern escape character, what's the most-correct way to quote that so it doesn't bump up against the specfile macro parser?

All of these seem to _work_, but I can imagine some of them aren't so much "correct" as "happen to not break, but still a bad idea":

```spec
%{gsub %{version} %. _}
%{gsub %{version} %%. _}
%{gsub %{version} %{quote:%.} _}
%{gsub %{version} %{quote:%%.} _}
```


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

Message ID: <rpm-software-management/rpm/repo-discussions/3826/comments/13535904 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250620/e2f5b4ce/attachment.htm>


More information about the Rpm-maint mailing list