When capturing output of emerge --info into a variable, the crap at the top is unexpected. $ emerge --info 2>&1 | cat -v ^[]2;Started emerge on: Dec 08, 2004 13:54:20^G^[]2; *** emerge info^GGentoo Base System version 1.6.7 ^[]2; *** terminating.^G^[]2;xterm^GPortage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.8-gentoo-r4-kt600 i686) ================================================================= System uname: 2.6.8-gentoo-r4-kt600 i686 AMD Athlon(tm) XP 1800+ ...
--nocolor ?
$ emerge --info --nocolor !!! Error: --nocolor is an invalid option. Besides, if you look at that output carefully, it's not color stuff.
That's the codes to change the xterm title.. Disabling that when the terminal is not a tty would suffice?
Fixed on or before 2.0.51.22-r1
Looking through the batch of bugs, I'm not sure that some of these are actually fixed in stable. Others, the requirements have possibly changed after the initial fix was committed. If you think this bug has been closed incorrectly, please reopen or ask that it be reopened.