Red Hat Bugzilla – Bug 25389
tree prints color even if "COLOR none" in /etc/DIR_COLORS is set
Last modified: 2009-05-29 15:41:59 EDT
when "COLOR none" is set in /etc/DIR_COLORS, tree will still use colors.
The man page does say it will use colors if LS_COLORS is set so it sounds
like documented but non-standard behavior?
DIR_COLOURS stuff didn't really work in RHL7 out of the box IIRC; see: #16918
You could try updating to the latest fileutils from Rawhide.
Created attachment 8622 [details]
use -n flag by default
weelll, fileutils-4.0x-3(#16918) is in RH7.0 already. I think tree should be
consistent with ls and not do color by default. I attached a small patch which
does minimum damage... i think :)
Fixed in tree-1.2-14.
<sad panda face> :( </sad panda face>
Why was the no color patch dropped?
I'd be willing to get this fixed the "right" way, whichever way that is if you let me know how to proceed.
Created attachment 345950 [details]
updated no-colour patch
I updated the patch to apply without fuzz in the case that was the reason for dropping it.
I'm willing to help comaintain if that would help.