Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907276 - app-portage/eix -r/--regex option should be case-sensitive by default
Summary: app-portage/eix -r/--regex option should be case-sensitive by default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-28 03:46 UTC by Alexis
Modified: 2023-06-01 06:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis 2023-05-28 03:46:07 UTC
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
Comment 1 Alexis 2023-05-28 04:47:24 UTC
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
Comment 2 Martin Väth 2023-05-28 19:25:14 UTC
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.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-01 06:51:04 UTC
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>