diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2010-10-21 13:20:52 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2010-10-21 13:20:52 +0000 |
commit | 037c630a168e2dd796c6b34b17d366faf713cdb3 (patch) | |
tree | 1a9fd96a679ef41c79e6dc7b29956d82abf4dddc | |
parent | 751a0b8c53fe71f88c77521c103e87614be8173f (diff) |
more EXIT STATUS bits; from Daniel Dickman
-rw-r--r-- | usr.bin/cut/cut.1 | 8 | ||||
-rw-r--r-- | usr.bin/m4/m4.1 | 10 | ||||
-rw-r--r-- | usr.bin/printf/printf.1 | 8 | ||||
-rw-r--r-- | usr.bin/talk/talk.1 | 11 |
4 files changed, 23 insertions, 14 deletions
diff --git a/usr.bin/cut/cut.1 b/usr.bin/cut/cut.1 index eb0ce1f3936..99368af4de3 100644 --- a/usr.bin/cut/cut.1 +++ b/usr.bin/cut/cut.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: cut.1,v 1.17 2010/09/03 11:09:28 jmc Exp $ +.\" $OpenBSD: cut.1,v 1.18 2010/10/21 13:20:51 jmc Exp $ .\" $NetBSD: cut.1,v 1.6 1995/10/02 20:19:26 jtc Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 @@ -33,7 +33,7 @@ .\" .\" @(#)cut.1 8.1 (Berkeley) 6/6/93 .\" -.Dd $Mdocdate: September 3 2010 $ +.Dd $Mdocdate: October 21 2010 $ .Dt CUT 1 .Os .Sh NAME @@ -113,9 +113,7 @@ Suppresses lines with no field delimiter characters. Unless specified, lines with no delimiters are passed through unmodified. .El .Sh EXIT STATUS -The -.Nm -utility exits 0 on success or 1 if an error occurred. +.Ex -std cut .Sh EXAMPLES Extract login names and shells from the system .Xr passwd 5 diff --git a/usr.bin/m4/m4.1 b/usr.bin/m4/m4.1 index be1f3d171b3..788dcae6313 100644 --- a/usr.bin/m4/m4.1 +++ b/usr.bin/m4/m4.1 @@ -1,4 +1,4 @@ -.\" @(#) $OpenBSD: m4.1,v 1.58 2010/09/19 21:30:04 jmc Exp $ +.\" @(#) $OpenBSD: m4.1,v 1.59 2010/10/21 13:20:51 jmc Exp $ .\" .\" Copyright (c) 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -30,7 +30,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: September 19 2010 $ +.Dd $Mdocdate: October 21 2010 $ .Dt M4 1 .Os .Sh NAME @@ -433,6 +433,12 @@ Returns the current file's line number. .It Ic __file__ Returns the current file's name. .El +.Sh EXIT STATUS +.Ex -std m4 +.Pp +But note that the +.Ic m4exit +macro can modify the exit status. .Sh STANDARDS The .Nm diff --git a/usr.bin/printf/printf.1 b/usr.bin/printf/printf.1 index ed00c3e0ac6..2e2ef455bb6 100644 --- a/usr.bin/printf/printf.1 +++ b/usr.bin/printf/printf.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: printf.1,v 1.24 2010/09/03 11:09:29 jmc Exp $ +.\" $OpenBSD: printf.1,v 1.25 2010/10/21 13:20:51 jmc Exp $ .\" .\" Copyright (c) 1989, 1990 The Regents of the University of California. .\" All rights reserved. @@ -32,7 +32,7 @@ .\" .\" from: @(#)printf.1 5.11 (Berkeley) 7/24/91 .\" -.Dd $Mdocdate: September 3 2010 $ +.Dd $Mdocdate: October 21 2010 $ .Dt PRINTF 1 .Os .Sh NAME @@ -349,9 +349,7 @@ In no case does a non-existent or small field width cause truncation of a field; padding takes place only if the specified field width exceeds the actual width. .Sh EXIT STATUS -The -.Nm -utility exits 0 on success or 1 on failure. +.Ex -std printf .Sh EXAMPLES Convert a hexadecimal value to decimal and print it out: .Pp diff --git a/usr.bin/talk/talk.1 b/usr.bin/talk/talk.1 index 95b16743a0f..ef920a9fe27 100644 --- a/usr.bin/talk/talk.1 +++ b/usr.bin/talk/talk.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: talk.1,v 1.23 2009/02/10 19:24:17 jmc Exp $ +.\" $OpenBSD: talk.1,v 1.24 2010/10/21 13:20:51 jmc Exp $ .\" $NetBSD: talk.1,v 1.3 1994/12/09 02:14:23 jtc Exp $ .\" .\" Copyright (c) 1983, 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)talk.1 8.1 (Berkeley) 6/6/93 .\" -.Dd $Mdocdate: February 10 2009 $ +.Dd $Mdocdate: October 21 2010 $ .Dt TALK 1 .Os .Sh NAME @@ -124,6 +124,13 @@ to find the recipient's machine .It Pa /var/run/utmp to find the recipient's tty .El +.Sh EXIT STATUS +The +.Nm +utility exits 0 on success, and \*(Gt0 if either an error occurred or +.Nm +is +invoked on an unsupported terminal. .Sh SEE ALSO .Xr mail 1 , .Xr mesg 1 , |