*BSD News Article 28949


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!usc!howland.reston.ans.net!pipex!sunic!EU.net!Germany.EU.net!news
From: bs@Germany.EU.net (Bernard Steiner)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: yet more FreeBSD-1.1-BETA install bugs
Date: 30 Mar 1994 18:21:05 +0200
Organization: EUnet Deutschland GmbH, Dortmund, Germany
Lines: 12
Distribution: world
Message-ID: <2nc8th$8mn@Germany.EU.net>
References: <Cn7vwo.2z0@cosy.sbg.ac.at> <JKH.94Mar25151624@sentnl.ilo.dec.com>  <2n71jn$6c3@Germany.EU.net> <JKH.94Mar29161752@sentnl.ilo.dec.com> <deeken.764955732@iti.informatik.th-darmstadt.de>
NNTP-Posting-Host: qwerty.germany.eu.net


In article <deeken.764955732@iti.informatik.th-darmstadt.de>, deeken@iti.informatik.th-darmstadt.de (Hannes Deeken) writes:
|> Because '>/dev/null 2>&1' redirects stdout _and_ stderr to /dev/null,
|> so 'BLAH' gets no input. Bernards form works, but IMHO '2>&1 >/dev/null'
|> is more suitable, since you don't get another subprocess.

Are you sure that will give you stderr dup'ed to fd1 so it can be piped to the
magic stuff ? I seem to recall vaguely that I tried it once but it didn't
work. Quite understandably not, since dup2() doesn't care whether it is told
to put fd2 on fd1 when fd1 is assciated with the tty or with /dev/null.

-Bernard