rpm-software-management / rpm

The RPM package manager
http://rpm.org
Other
502 stars 363 forks source link

RFE: add glob matching to rpm expressions #2350

Open mlschroe opened 1 year ago

mlschroe commented 1 year ago

I just had a use case where I needed glob matching in an rpm expression. Is that something we should add? We could define a new operator like "string" ~~ "glob" or hijack an existing one that currently throws an error like "string" * "glob". Of course we can also use a function like match("string", "glob").

pmatilai commented 1 year ago

By all means.

My gut feeling says a function will find more users, but if an additional shortcut syntax in expressions seems useful then why not. But that's from somebody who never felt the need to do globs in macros/expressions, so YMMV...