1 |
On Thu, 2009-05-07 at 10:00 +0300, Amit Dor-Shifer wrote: |
2 |
> Hi. |
3 |
> |
4 |
> Seems like --columns depends on -q to work: |
5 |
> |
6 |
> amit0 ~ # emerge -p --color=n --columns -O -q portage |
7 |
> R sys-apps/portage 2.1.6.7 |
8 |
> amit0 ~ # emerge -p --color=n --columns -O portage |
9 |
> |
10 |
> These are the packages that would be merged, in order: |
11 |
> |
12 |
> [ebuild R ] sys-apps/portage |
13 |
> [2.1.6.7] |
14 |
> |
15 |
> Is this WAD? |
16 |
> 10x, |
17 |
> Amit |
18 |
|
19 |
|
20 |
Yep. This looks like a bug with the [] part of the atom display. |
21 |
|
22 |
emerge -p --columns portage \ |
23 |
| grep \\[ebuild \ |
24 |
| awk '{print $4"-"$5}' |
25 |
|
26 |
Results: sys-apps/portage-[2.1.6.11] |
27 |
|
28 |
Quick work around that should be safe would be to |
29 |
|
30 |
tr '[,]' ' , ' |awk '{print $3"-"$4}' |
31 |
|
32 |
It is expected however that -q vs no -q will result in the atoms being |
33 |
at the same index. |
34 |
|
35 |
-- |
36 |
Ned Ludd <solar@g.o> |
37 |
Gentoo Linux |