Portage 3.0.41-r2 ignores the "--color=n" command-line option when printing certain error messages. Reproducible: Always Steps to Reproduce: 1. Place an old ebuild for an installed package in a local overlay 2. Run "emerge --update --deep --verbose --fetchonly --color=n world > errors.txt" Actual Results: [31;01m*[0m ERROR: gnome-base/librsvg-2.48.8::x-portage failed (depend phase): [31;01m*[0m rust-toolchain: EAPI 6 not supported [31;01m*[0m [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 614: Called source '/usr/local/portage/gnome-base/librsvg/librsvg-2.48.8.ebuild' [31;01m*[0m librsvg-2.48.8.ebuild, line 8: Called inherit 'gnome2' 'multilib-minimal' 'rust-toolchain' 'vala' [31;01m*[0m ebuild.sh, line 294: Called __qa_source '/usr/portage/eclass/rust-toolchain.eclass' [31;01m*[0m ebuild.sh, line 109: Called source '/usr/portage/eclass/rust-toolchain.eclass' [31;01m*[0m rust-toolchain.eclass, line 16: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; [31;01m*[0m [31;01m*[0m If you need support, post the output of `emerge --info '=gnome-base/librsvg-2.48.8::x-portage'`, [31;01m*[0m the complete build log and the output of `emerge -pqv '=gnome-base/librsvg-2.48.8::x-portage'`. [31;01m*[0m Working directory: '/usr/lib/python3.10/site-packages' [31;01m*[0m S: '/var/tmp/portage/gnome-base/librsvg-2.48.8/work/librsvg-2.48.8' Expected Results: The above, only without any of the terminal control codes