Seems like a pretty big breaking change.
Seems like a pretty big breaking change.
`WARNING: apt does not have a stable CLI interface. Use with caution in scripts.`
I would suggest reading the apt-pattern man page referenced before passing judgement.
I am sorry but this isn't true. I can prove it.
Regex is used to parse the program itself that runs APT, this is called Lexical analysis[1]. GNU Bison and Flex [2] are lexical analyzers for example that compile a lot of code we write today. So whatever pattern matching code was written in C as part of the APT 2.0 package, that code itself is read and compiled by regex. So, it provably cannot be impossible to do a match using this new feature you're referring to that cannot be matched using plain old regex. Difficulty is subjective depending on who the target demographic is.
All these things are actually moot - it doesn't cost you anything to keep Regex option to search for some package names, perhaps a bit of additional code to maintain. Also, other means of pattern matching can be added in addition to regex search feature. Why not both?
[1] https://en.wikipedia.org/wiki/Lexical_analysis [2] https://aquamentus.com/flex_bison.html
glob style wildcards are more common, though, in that context, anyway. It would be safe to re-enable those, but I'm not certain this provides a sensible user experience improvement.