From 56a90ee41990c0d71e5131d1e04774a4bfeffa89 Mon Sep 17 00:00:00 2001 From: apb Date: Sun, 22 Jan 2012 09:25:26 +0000 Subject: [PATCH] Fix the csh(1) example ("make ... |& error ...", not "make ... | error ..."), and add a sh(1) example ("make ... 2>&1 | error ..."). --- usr.bin/error/error.1 | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/usr.bin/error/error.1 b/usr.bin/error/error.1 index 5416c146cf80..74879027f4bb 100644 --- a/usr.bin/error/error.1 +++ b/usr.bin/error/error.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: error.1,v 1.17 2011/05/20 07:08:24 wiz Exp $ +.\" $NetBSD: error.1,v 1.18 2012/01/22 09:25:26 apb Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)error.1 8.1 (Berkeley) 6/6/93 .\" -.Dd May 19, 2011 +.Dd January 22, 2012 .Dt ERROR 1 .Os .Sh NAME @@ -134,12 +134,20 @@ Some language processors put error messages on their standard error file; others put their messages on the standard output. Hence, both error sources should be piped together into .Nm . +.Pp For example, when using the +.Xr sh 1 +syntax +.Pp +.Dl make \-s lint 2\*[Gt]\*[Am]1 \&| error \-q \-v +.Pp +or the .Xr csh 1 -syntax, +syntax .Pp -.Dl make \-s lint \&| error \-q \-v +.Dl make \-s lint \&|\*[Am] error \-q \-v .Pp +.Nm will analyze all the error messages produced by whatever programs .Xr make 1