Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/wc New sentence, new line. Add EXIT STATUS section a...
details: https://anonhg.NetBSD.org/src/rev/5f36c52c2cf2
branches: trunk
changeset: 752184:5f36c52c2cf2
user: wiz <wiz%NetBSD.org@localhost>
date: Thu Feb 18 13:14:51 2010 +0000
description:
New sentence, new line. Add EXIT STATUS section and use .Ex.
Fix macro argument abuse.
Use Aq instead of \*[Lt]\*[Gt].
diffstat:
usr.bin/wc/wc.1 | 24 ++++++++++++++----------
1 files changed, 14 insertions(+), 10 deletions(-)
diffs (58 lines):
diff -r 53951cb901b1 -r 5f36c52c2cf2 usr.bin/wc/wc.1
--- a/usr.bin/wc/wc.1 Thu Feb 18 12:32:30 2010 +0000
+++ b/usr.bin/wc/wc.1 Thu Feb 18 13:14:51 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: wc.1,v 1.14 2010/02/18 10:43:50 tron Exp $
+.\" $NetBSD: wc.1,v 1.15 2010/02/18 13:14:51 wiz Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -84,9 +84,8 @@
.Nm
only
reports the
-information requested by that option. The
-default action is equivalent to all the
-flags
+information requested by that option.
+The default action is equivalent to all the flags
.Fl clw
having been specified.
.Pp
@@ -105,17 +104,20 @@
.Bd -literal -offset indent
lines words bytes file_name
.Ed
-.Pp
-The
-.Nm
-utility exits 0 on success, and \*[Gt]0 if an error occurs.
+.Sh EXIT STATUS
+.Ex -std wc
.Sh SEE ALSO
.Xr iswspace 3
.Sh COMPATIBILITY
Historically, the
.Nm
utility was documented to define a word as a ``maximal string of
-characters delimited by \*[Lt]space\*[Gt], \*[Lt]tab\*[Gt] or \*[Lt]newline\*[Gt] characters''.
+characters delimited by
+.Aq space ,
+.Aq tab
+or
+.Aq newline
+characters''.
The implementation, however, didn't handle non-printing characters
correctly so that `` ^D^E '' counted as 6 spaces, while ``foo^D^Ebar''
counted as 8 characters.
@@ -134,7 +136,9 @@
option is a non-standard extension, compatible with the
.Fl L
option of the GNU and
-.Fx wc utility.
+.Fx
+.Nm
+utilities.
.Sh STANDARDS
The
.Nm
Home |
Main Index |
Thread Index |
Old Index