Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/error Fix the csh(1) example ("make ... |& error ......



details:   https://anonhg.NetBSD.org/src/rev/e225e53ba365
branches:  trunk
changeset: 772949:e225e53ba365
user:      apb <apb%NetBSD.org@localhost>
date:      Sun Jan 22 09:25:26 2012 +0000

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

diffstat:

 usr.bin/error/error.1 |  16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 1581be9fd26c -r e225e53ba365 usr.bin/error/error.1
--- a/usr.bin/error/error.1     Sun Jan 22 09:11:58 2012 +0000
+++ b/usr.bin/error/error.1     Sun Jan 22 09:25:26 2012 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index