From owner-freebsd-questions Sun Sep 29 15: 6:42 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8660537B401 for ; Sun, 29 Sep 2002 15:06:41 -0700 (PDT) Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43F4243E77 for ; Sun, 29 Sep 2002 15:06:41 -0700 (PDT) (envelope-from mbsd@pacbell.net) Received: from atlas ([64.168.24.134]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0H3800JJF034FN@mta5.snfc21.pbi.net> for FreeBSD-Questions@FreeBSD.Org; Sun, 29 Sep 2002 15:06:41 -0700 (PDT) Date: Sun, 29 Sep 2002 15:06:40 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= Subject: Re: man tcsh | col -b | grep -i stderr In-reply-to: <20020929144005.N1352-100000@dhcp-407-32.san.rr.com> X-X-Sender: mikko@atlas.home To: Peter Leftwich Cc: FreeBSD Questions LIST Message-id: <20020929145450.A308-100000@atlas.home> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 29 Sep 2002, Peter Leftwich wrote: > I would like to learn more about redirection and stderr but the manpage for > tcsh does not have any information apparently about "&2>" or whatever: Search for "redirect"... > # man tcsh | col -b | grep -i stderr > # [no output] > > Can someone direct me to the proper manpage? `man stderr` did not have the > information, nor did `man sh` - please help. Thanks kindly, The format for redirects differ between "csh" (and derivates) and "sh". As I recall, csh can send stderr to stdout, and not much else (you append a "&" to whatever redirector you're using, e.g. ">&" or "|&"). I haven't used [t]csh for a very, very long time. To be able to decipher the documentation of redirection in "sh", you need to know the numbers of the standard descriptors: 0 = stdin, 1 = stdout, 2 = stderr. $.02, /Mikko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message