While some subcommands of equery automatically turn off colors when stdout is not a tty (e.g. equery list does that), the files subcommand doesn't do that. For example, the output of equery files bash | cat contains colors. This means that things like equery files bash | grep ^/bin do not work as expected.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=84ffe42e52d06fd90a21c93d60dbec7c64b621cf commit 84ffe42e52d06fd90a21c93d60dbec7c64b621cf Author: Brian Dolbec <dolsen@gentoo.org> AuthorDate: 2022-07-10 01:06:50 +0000 Commit: Brian Dolbec <dolsen@gentoo.org> CommitDate: 2022-07-10 01:06:50 +0000 equery: Turn off color when piping is set Bug: https://bugs.gentoo.org/506394 Signed-off-by: Brian Dolbec <dolsen@gentoo.org> pym/gentoolkit/equery/__init__.py | 2 ++ 1 file changed, 2 insertions(+)