Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Sep 2002 15:06:40 -0700 (PDT)
From:      =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= <mbsd@pacbell.net>
To:        Peter Leftwich <Hostmaster@Video2Video.Com>
Cc:        FreeBSD Questions LIST <FreeBSD-Questions@FreeBSD.Org>
Subject:   Re: man tcsh | col -b | grep -i stderr
Message-ID:  <20020929145450.A308-100000@atlas.home>
In-Reply-To: <20020929144005.N1352-100000@dhcp-407-32.san.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020929145450.A308-100000>