Bug 204176 - Add no color option to gcc-config
Bug#: 204176 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: toolchain@gentoo.org Reported By: baptiste.daroussin@gmail.com
Component: Core system
URL: 
Summary: Add no color option to gcc-config
Keywords:  
Status Whiteboard: 
Opened: 2008-01-03 11:47 0000
Description:   Opened: 2008-01-03 11:47 0000
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

------- Comment #1 From Bapt 2008-01-03 11:48:58 0000 -------
Created an attachment (id=139962) [details]
The gcc-config patch

------- Comment #2 From SpanKY 2008-01-03 15:05:55 0000 -------
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

------- Comment #3 From Bapt 2008-01-03 17:26:57 0000 -------
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.

------- Comment #4 From SpanKY 2008-01-03 20:54:31 0000 -------
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

------- Comment #5 From SpanKY 2008-03-16 01:18:09 0000 -------
fixed in cvs

http://sources.gentoo.org/sys-devel/gcc-config/files/gcc-config-1.4.1?rev=1.1