Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370085 - app-portage/gentoolkit- euse should ignore/workaround GREP_OPTIONS
Summary: app-portage/gentoolkit- euse should ignore/workaround GREP_OPTIONS
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2011-06-05 10:16 UTC by Peter Alfredsen (RETIRED)
Modified: 2011-06-05 10:16 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Peter Alfredsen (RETIRED) gentoo-dev 2011-06-05 10:16:39 UTC
GREP_OPTIONS is a global variable that can be set in the local .bashrc or even in env.d that specifies default options for grep. When GREP_OPTIONS="--colour=yes", The output of euse -i mp3 goes like this:
loki ~ # euse -i mp3
global use flags (searching: mp3)
no matching entries found

local use flags (searching: mp3)
[+ C    ] mp3
    media-sound/xwax:  Sets runtime dependencies to 
    support decoding MP3 audio.
egrep: Unmatched [ or [^
grep: Unmatched ) or \)
grep: Unmatched [ or [^

Euse should either add:
which would solve this for all possible cases or workaround by doing:
GREP_OPTIONS+=" --colour=no"

Reproducible: Always