[Rpm-maint] [rpm-software-management/rpm] `%{gsub:...}` throws error (Issue #3410)

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


>From [documentation](https://github.com/rpm-software-management/rpm/blob/ebc406862053815528c00095f9f991d649fa33a0/docs/manual/macros.md?plain=1#L119), I would think this should work:

~~~
$ rpm --eval "%{gsub:foo o i}"
error: lua script failed: [string "gsub"]:1: bad argument #2 to 'gsub' (string expected, got no value)
~~~

Please note the example works just fine without the collon:

~~~
$ rpm --eval "%{gsub foo o i}"
fii
~~~

Testing on Fedora Rawhide:

~~~
$ rpm -q rpm
rpm-4.20.0-1.fc42.x86_64
~~~

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

Message ID: <rpm-software-management/rpm/issues/3410 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241029/d4d25122/attachment.html>


More information about the Rpm-maint mailing list