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. |