From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 4 18:20:11 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 97AD516A408 for ; Wed, 4 Apr 2007 18:20:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 436C213C46C for ; Wed, 4 Apr 2007 18:20:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l34IKBgv011686 for ; Wed, 4 Apr 2007 18:20:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l34IKBwj011685; Wed, 4 Apr 2007 18:20:11 GMT (envelope-from gnats) Date: Wed, 4 Apr 2007 18:20:11 GMT Message-Id: <200704041820.l34IKBwj011685@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Ruslan Ermilov Cc: Subject: Re: conf/111195: make distrubution target outputs to the wrong file descriptor X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ruslan Ermilov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 18:20:11 -0000 The following reply was made to PR conf/111195; it has been noted by GNATS. From: Ruslan Ermilov To: Alexandr Kovalenko Cc: bug-followup@FreeBSD.org Subject: Re: conf/111195: make distrubution target outputs to the wrong file descriptor Date: Wed, 4 Apr 2007 21:49:32 +0400 On Wed, Apr 04, 2007 at 05:20:09PM +0000, Alexandr Kovalenko wrote: > > > >How-To-Repeat: > > > [never@mile /usr/src/etc]$ sudo make distribution DESTDIR=~never/chroot 2>&1 > /dev/null > > > + ln -s ../var/named/etc/namedb /home/never/chroot/etc/namedb > > > + ln -s mail/aliases /home/never/chroot/etc/aliases > > > [never@mile /usr/src/etc]$ > > > >Fix: > > > N/A > > > >Release-Note: > > > > Hello, > > > > This report is useless, can you specify what the problem is? (at least I dont get what you > > are meaning and we would like to help, but then you need to submit information that we > > can use.) > > Ok, let me explain more detailed, as you can see - I redirected both > stdout and stderr to /dev/null, but still some text was displayed. I > suppose it is not desired behavour and those "+ ln -s ..." lines should > not appear in output, but they did because some part of script writes > not to stdout and stderr only. I may be wrong though. > To redirect both stdout and stderr to /dev/null, you should write it like this: ">/dev/null 2>&1", and not like you did it: "2>&1 >/dev/null". The order is important here. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer