Module Name:    src
Committed By:   apb
Date:           Sun Jan 22 09:25:27 UTC 2012

Modified Files:
        src/usr.bin/error: error.1

Log Message:
Fix the csh(1) example ("make ... |& error ...", not "make ... | error ..."),
and add a sh(1) example ("make ... 2>&1 | error ...").


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/error/error.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/error/error.1
diff -u src/usr.bin/error/error.1:1.17 src/usr.bin/error/error.1:1.18
--- src/usr.bin/error/error.1:1.17	Fri May 20 07:08:24 2011
+++ src/usr.bin/error/error.1	Sun Jan 22 09:25:26 2012
@@ -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 messa
 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

Reply via email to