Gentoo Archives: gentoo-user

From: Daniel Iliev <danny@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] pet peeve: sending normal output to stderr (env-update)
Date: Tue, 14 Nov 2006 22:32:49
Message-Id: 455A42C3.6030804@ilievnet.com
In Reply to: Re: [gentoo-user] [OT] pet peeve: sending normal output to stderr (env-update) by Etaoin Shrdlu
1 Etaoin Shrdlu wrote:
2 > On Tuesday 14 November 2006 22:40, Daniel Iliev wrote:
3 >
4 >
5 >> "emerge ... 2>&1 >/dev/null | grep -v -e '>>> Regenerating '"
6 >>
7 >> Isn't '>/dev/null' here by "typing habit" ? I think the right way is:
8 >>
9 >> command 2>&1 | grep...
10 >>
11 >
12 > Your version does not suppress standard output, Richard's version does
13 > (I'm not saying that one is better than the other though...).
14 >
15
16 Ooops! My mistake. Sorry.
17
18 It is written "command 2>&1 >/dev/null" but I read "command >/dev/null 2>&1"
19
20
21 Richard is right (as usual) :)
22
23
24 --
25 Best regards,
26 Daniel
27
28
29 --
30 gentoo-user@g.o mailing list