Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814656 - sys-apps/portage-3.0.20-r6 : emerge does not disable color when stdout is not a tty
Summary: sys-apps/portage-3.0.20-r6 : emerge does not disable color when stdout is not...
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-24 22:33 UTC by Eric F. GARIOUD
Modified: 2021-09-25 12:27 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 Eric F. GARIOUD 2021-09-24 22:33:07 UTC
man emerge tells that :

"by default, color is disabled unless stdout is a tty"

It does not seem to be the case as :

emerge -p --deep --update --changed-use world > whatever
od -cx whatever 
0000000  \n 033   [   3   2   m   T   h   e   s   e       a   r   e

Straight from the beginning and all along the output, one can recognize the escape sequences used to colorize.

Not a big annoyance per se apart from the fact that this breaks genlop

emerge -p --deep --update --changed-use world | genlop -p
!!! Error: no pretended packages found.

Not itself a big annoyance apart from the time needed to wonder why and apply an easy workaround :

emerge -p --deep --update --changed-use --color n world | genlop -p

Reproducible: Always