Bug 25389

Summary: tree prints color even if "COLOR none" in /etc/DIR_COLORS is set
Product: [Retired] Red Hat Linux Reporter: Zing <shishz>
Component: treeAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: pekkas, zing
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-10-05 10:40:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
use -n flag by default
none
updated no-colour patch none

Description Zing 2001-01-31 17:04:57 UTC
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?

Comment 1 Pekka Savola 2001-01-31 20:18:18 UTC
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.


Comment 2 Zing 2001-02-01 02:21:55 UTC
Created attachment 8622 [details]
use -n flag by default

Comment 3 Zing 2001-02-01 02:24:36 UTC
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 :)

Comment 4 Tim Waugh 2001-10-22 08:49:43 UTC
Fixed in tree-1.2-14.


Comment 5 Zing 2009-05-26 20:19:20 UTC
<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.

Comment 6 Zing 2009-05-29 19:41:59 UTC
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.