From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Gk67n-0007HX-Kf for garchives@archives.gentoo.org; Tue, 14 Nov 2006 21:47:25 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kAELhjU7007144; Tue, 14 Nov 2006 21:43:45 GMT Received: from ilievnet.com ([84.21.204.200]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kAELfW0p005285 for ; Tue, 14 Nov 2006 21:41:32 GMT Received: from localhost (localhost [127.0.0.1]) by ilievnet.com (Postfix) with ESMTP id BF89721E033 for ; Tue, 14 Nov 2006 23:41:19 +0200 (EET) X-Virus-Scanned: amavisd-new at ilievnet.com Received: from ilievnet.com ([127.0.0.1]) by localhost (ilievnet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W+xgAhpHEsKa for ; Tue, 14 Nov 2006 23:41:13 +0200 (EET) Received: from [10.0.1.1] (mail.ilievnet.com [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ilievnet.com (Postfix) with ESMTP id BF1DA20516F for ; Tue, 14 Nov 2006 23:41:00 +0200 (EET) Message-ID: <455A37EB.4060308@ilievnet.com> Date: Tue, 14 Nov 2006 23:40:59 +0200 From: Daniel Iliev User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.0.8) Gecko/20061112 MultiZilla/1.8.3.0a SeaMonkey/1.0.6 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] pet peeve: sending normal output to stderr (env-update) References: <7573e9640611141245w456ee863yde01fdf8c268156@mail.gmail.com> In-Reply-To: <7573e9640611141245w456ee863yde01fdf8c268156@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: f601a04b-f102-4953-93cd-021147eaed19 X-Archives-Hash: 1dbb58e539192037454e3faeac4e1a7d Richard Fish wrote: > On 11/14/06, David Talkington wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> >> Why on earth does env-update send this: >> >> >>> Regenerating /etc/ld.so.cache... > > env-update.sh outputs this message with a simple "echo", so no output > to stdout here. However portage writes most ">>>" messages to stderr. > > You can either file a bug report on bugs.gentoo.org to try and get the > behavior changed, or use "emerge ... 2>&1 >/dev/null | grep -v -e '>>> > Regenerating '". This will send stdout to /dev/null, and stderr to > the pipe where grep can filter out whatever messages annoy you. > > -Richard "emerge ... 2>&1 >/dev/null | grep -v -e '>>> Regenerating '" Isn't '>/dev/null' here by "typing habit" ? I think the right way is: command 2>&1 | grep... -- Best regards, Daniel -- gentoo-user@gentoo.org mailing list