From owner-freebsd-stable Sat May 12 11: 2:36 2001 Delivered-To: freebsd-stable@freebsd.org Received: from snark.ptc.spbu.ru (snark.ptc.spbu.ru [195.19.225.131]) by hub.freebsd.org (Postfix) with ESMTP id 674F037B424 for ; Sat, 12 May 2001 11:02:32 -0700 (PDT) (envelope-from uwe@snark.ptc.spbu.ru) Received: (from uwe@localhost) by snark.ptc.spbu.ru (8.8.8+Sun/8.8.8) id WAA01115; Sat, 12 May 2001 22:02:17 +0400 (MSD) Date: Sat, 12 May 2001 22:02:17 +0400 From: "Valeriy E. Ushakov" To: Doug Barton Cc: "Antoine Beaupre (LMC)" , Ian Chilton , freebsd-stable@FreeBSD.ORG Subject: Re: [OT] Re: natd locks me out Message-ID: <20010512220217.A1068@snark.ptc.spbu.ru> Mail-Followup-To: Doug Barton , "Antoine Beaupre (LMC)" , Ian Chilton , freebsd-stable@FreeBSD.ORG References: <20010511105928.A22838@woody.ichilton.co.uk> <3AFBEFE6.ED85C80C@lmc.ericsson.se> <3AFC0A97.2E570C0F@lmc.ericsson.se> <3AFD7844.F74F0B8F@DougBarton.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.3i In-Reply-To: <3AFD7844.F74F0B8F@DougBarton.net>; from "Doug Barton" on Sat, May 12, 2001 at 10:52:04 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, May 12, 2001 at 10:52:04 -0700, Doug Barton wrote: > The way I try to remember it is that "2>&1" means, "Send STDERR to > wherever STDOUT was redirected to." If you think of it that way, > that bit has to come at the end because it doesn't make sense for it > to come first since STDOUT hasn't been redirected anywhere yet. It does make sense: $ foo 2>&1 > /dev/null will discard foo's output (stdout) and redirect foo's stderr to what used to be stdout descriptor. Useful to pipe stderr. SY, Uwe -- uwe@ptc.spbu.ru | Zu Grunde kommen http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message