Gentoo Archives: gentoo-dev

From: Martin Vaeth <vaeth@××××××××××××××××××××××××.de>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: git-r3: initial draft for review [v2]
Date: Sat, 07 Sep 2013 08:35:29
Message-Id: slrnl2lp9g.gb.vaeth@lounge.imp.fu-berlin.de
In Reply to: Re: [gentoo-dev] git-r3: initial draft for review [v2] by Walter Dnes
1 Walter Dnes <waltdnes@××××××××.org> wrote:
2 >
3 > Note that...
4 >
5 > grep foo bar.txt
6 >
7 > ...returns colour-highlighted text, while...
8 >
9 > grep foo bar.txt > output.txt
10 >
11 > ...returns plain text. So it can be done properly for everybody.
12
13 No, it cannot be done properly for everybody:
14
15 grep foo bar.txt | tee output.txt
16
17 Unfortunately, this corresponds exactly to portage's setup:
18 Commands like einfo would have to produce different output
19 on different channels which they cannot do if portage
20 redirects/copies globally. Portage would need a rather
21 cumbersome (and presumably slow) catching of such output
22 for each command separately.
23 Filtering the logfiles afterwards is probably simpler.