From owner-freebsd-questions Sat Dec 23 14:48:23 2000 From owner-freebsd-questions@FreeBSD.ORG Sat Dec 23 14:48:22 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 4301837B402 for ; Sat, 23 Dec 2000 14:48:21 -0800 (PST) Received: (from jonc@localhost) by itouch.co.nz (8.11.1/8.11.1) id eBNMmDL11865; Sun, 24 Dec 2000 11:48:13 +1300 (NZDT) (envelope-from jonc) Date: Sun, 24 Dec 2000 11:48:13 +1300 From: Jonathan Chen To: "David J. Kanter" Cc: "questions@FreeBSD.ORG" Subject: Re: "make" output redirected to file Message-ID: <20001224114813.A11797@itouchnz.itouch> References: <39CBB5C4.E494B639@home.com> <20000923002313.A47384@freebsd.mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000923002313.A47384@freebsd.mindspring.com>; from david.kanter@mindspring.com on Sat, Sep 23, 2000 at 12:23:13AM -0500 Sender: jonc@itouch.co.nz Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Sep 23, 2000 at 12:23:13AM -0500, David J. Kanter wrote: > On Fri, Sep 22, 2000 at 11:56:41PM -0400, Matthew Emmerton wrote: > > If you're using ksh or sh as your shell, executing 'command 2>&1 > file' > > works well. (The logic here is this: 2>&1 says to redirect file handle 2 > > (stderr) to file handle 1 (stdout), which is then redirected to file.) > ---end quoted text--- > > I think it's the other way around (i.e., 2 is stdout and 1 is stderr). No. 1 is stdout, 2 is stderr. -- Jonathan Chen ---------------------------------------------------------------------- Experience is a hard teacher because she gives the test first, the lesson afterwards To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message