Bug 25389 - tree prints color even if "COLOR none" in /etc/DIR_COLORS is set
Summary: tree prints color even if "COLOR none" in /etc/DIR_COLORS is set
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tree
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-01-31 17:04 UTC by Zing
Modified: 2009-05-29 19:41 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-10-05 10:40:32 UTC
Embargoed:


Attachments (Terms of Use)
use -n flag by default (1.32 KB, patch)
2001-02-01 02:21 UTC, Zing
no flags Details | Diff
updated no-colour patch (1.56 KB, patch)
2009-05-29 19:41 UTC, Zing
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.