Here is patch for gcc-config that add an option to have a non colorized output in gcc-config, this patch is taken from #188961 This patch is needed to get working completion for zsh-completion on Gentoo/FreeBSD and Gentoo/Alt macosx at least Reproducible: Always
Created attachment 139962 [details, diff] The gcc-config patch
i doubt you *need* a color option ... gcc-config already respects the no color environment variables since it is just using baselayout for color also, -n is not the correct option ... that is what -C is for
The patch was not mine, I just splitted the previous bug. I didn't know about the environnement variable. If you don't want to add a no color option to gcc-config, I can work around the completion function using RC_NOCOLOR=yes gcc-config -l now I now about RC_NOCOLOR So We can consider this bug as fixed.
i'm not against adding a -C option (it's good for consistency with other Gentoo utilities), i'm just saying it isnt a blocker for other projects
fixed in cvs http://sources.gentoo.org/sys-devel/gcc-config/files/gcc-config-1.4.1?rev=1.1