Date: Wed, 4 Apr 2007 18:20:11 GMT From: Ruslan Ermilov <ru@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/111195: make distrubution target outputs to the wrong file descriptor Message-ID: <200704041820.l34IKBwj011685@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/111195; it has been noted by GNATS. From: Ruslan Ermilov <ru@FreeBSD.org> To: Alexandr Kovalenko <never@nevermind.kiev.ua> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704041820.l34IKBwj011685>