conf/111195: make distrubution target outputs to the wrong file descriptor

Ruslan Ermilov ru at FreeBSD.org
Wed Apr 4 18:20:11 UTC 2007


The following reply was made to PR conf/111195; it has been noted by GNATS.

From: Ruslan Ermilov <ru at FreeBSD.org>
To: Alexandr Kovalenko <never at nevermind.kiev.ua>
Cc: bug-followup at 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 at 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 at 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 at FreeBSD.org
 FreeBSD committer


More information about the freebsd-bugs mailing list