Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add glob matching to rpm expressions (Issue #2350)

2023-01-13 Thread Panu Matilainen
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... -- Reply to this email directly or view it on

[Rpm-maint] [rpm-software-management/rpm] RFE: add glob matching to rpm expressions (Issue #2350)

2023-01-13 Thread Michael Schroeder
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