Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115677 - --no-color options does not suppress escaping
Summary: --no-color options does not suppress escaping
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-12-15 10:41 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-02-09 17:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Removes all color codes when option --no-color is used (output.bash,6.78 KB, text/plain)
2005-12-20 20:20 UTC, Nathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-15 10:41:53 UTC
When piping the output of eselect --no-color through nopaste script  
(app-text/nopaste), the text that appears in the past contains the escaping  
used to set the color to the default:  
 
 [00mInstalled binutils for target  [00mi686-gentoo-freebsd5.4 [00m [00m 
   [00m[1] [00m    [00m2.16.1 [00m * [00m [00m 
 [00mInstalled binutils for target  [00mpowerpc-unknown-linux-gnu [00m [00m 
   [00m[2] [00m    [00m2.16.1 [00m * [00m [00m 
 [00mInstalled binutils for target  [00mx86_64-pc-linux-gnu [00m [00m 
   [00m[3] [00m    [00m2.16.1 [00m [00m [00m 
   [00m[4] [00m    [00m2.16.91.0.4 [00m * [00m [00m 
 
this means that the --no-color option is not so likely to be usable for 
parsing output than one would expect, while it shows up as being "colorless" 
on terminal. 
 
HTH, 
Diego
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2005-12-18 16:06:29 UTC
Ciaran: We do use SVN instead of CVS, you know? :-P
Comment 2 Ciaran McCreesh 2005-12-18 16:15:44 UTC
Wha? Which monkey went and added that? It's silly! Next we'll have to add InArch, InClearCase, InSourceSafe and InGit...
Comment 3 Nathan 2005-12-20 20:20:55 UTC
Created attachment 75243 [details]
Removes all color codes when option --no-color is used

new /usr/share/eselect/libs/output.bash
Comment 4 Ciaran McCreesh 2005-12-21 10:26:52 UTC
Comment on attachment 75243 [details]
Removes all color codes when option --no-color is used

No need for a patch, this one's already tagged as InSVN.
Comment 5 Ciaran McCreesh 2006-02-09 17:58:53 UTC
In 1.0.