Someone on #gentoo was wondering how to do a case-sensitive search with eix. It turns out that `-e --substring` is the answer, but i was surprised to find that the -r/--regex option is case-insensitive, with (i believe) no way of changing this. The standard behaviour of regex implementations is to be case-sensitive unless specified otherwise (e.g. via `/i` in Perl), so i believe eix's behaviour in this regard violates the principle of least surprise. Reproducible: Always
josef64 on #gentoo suggested i report this on the relevant upstream issue tracker, so i've now just done so: https://github.com/vaeth/eix/issues/110
eix-0.36.7 has a new --regex-case option, and this option is chosen by default if normally a regex would be the default, but the pattern contains an uppercase character.
commit 056f5befd848e58fc505e301cf871c23418dcbca Author: Michał Górny <mgorny@gentoo.org> Date: Mon May 29 06:33:52 2023 +0200 app-portage/eix: Bump to 0.36.7 Signed-off-by: Michał Górny <mgorny@gentoo.org>