summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2010-10-01 07:06:17 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2010-10-01 07:06:17 +0000
commitcfe105566a082492019e665602467e69de8a0033 (patch)
treeeeaae0f3c5fb2a62f60554b0b5bdad0c2b431e33 /usr.bin
parentba144dd488c8790f80d30537e84669b98180cd05 (diff)
more EXIT STATUS tweaks; from Daniel Dickman
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/awk/awk.110
-rw-r--r--usr.bin/ctags/ctags.16
-rw-r--r--usr.bin/getent/getent.16
-rw-r--r--usr.bin/pr/pr.18
4 files changed, 18 insertions, 12 deletions
diff --git a/usr.bin/awk/awk.1 b/usr.bin/awk/awk.1
index 7a59cee51d1..6dad9ebbde2 100644
--- a/usr.bin/awk/awk.1
+++ b/usr.bin/awk/awk.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: awk.1,v 1.36 2010/08/25 19:21:04 deraadt Exp $
+.\" $OpenBSD: awk.1,v 1.37 2010/10/01 07:06:16 jmc Exp $
.\" EX/EE is a Bd
.\"
.\" Copyright (C) Lucent Technologies 1997
@@ -23,7 +23,7 @@
.\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
.\" THIS SOFTWARE.
.\"
-.Dd $Mdocdate: August 25 2010 $
+.Dd $Mdocdate: October 1 2010 $
.Dt AWK 1
.Os
.Sh NAME
@@ -710,6 +710,12 @@ Returns x shifted by n bits to the left.
.It Fn rshift x n
Returns y shifted by n bits to the right.
.El
+.Sh EXIT STATUS
+.Ex -std awk
+.Pp
+But note that the
+.Ic exit
+expression can modify the exit status.
.Sh EXAMPLES
Print lines longer than 72 characters:
.Pp
diff --git a/usr.bin/ctags/ctags.1 b/usr.bin/ctags/ctags.1
index 2b9154535ca..16d01bbc956 100644
--- a/usr.bin/ctags/ctags.1
+++ b/usr.bin/ctags/ctags.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ctags.1,v 1.20 2010/09/29 07:44:56 jmc Exp $
+.\" $OpenBSD: ctags.1,v 1.21 2010/10/01 07:06:16 jmc Exp $
.\" $NetBSD: ctags.1,v 1.4 1995/03/26 20:14:04 glass Exp $
.\"
.\" Copyright (c) 1987, 1990, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)ctags.1 8.1 (Berkeley) 6/6/93
.\"
-.Dd $Mdocdate: September 29 2010 $
+.Dd $Mdocdate: October 1 2010 $
.Dt CTAGS 1
.Os
.Sh NAME
@@ -177,6 +177,8 @@ default output tags file
.El
.Sh EXIT STATUS
.Ex -std ctags
+.Pp
+Duplicate objects are not considered errors.
.Sh SEE ALSO
.Xr ex 1 ,
.Xr vi 1
diff --git a/usr.bin/getent/getent.1 b/usr.bin/getent/getent.1
index 42bec250385..7a641ac87e9 100644
--- a/usr.bin/getent/getent.1
+++ b/usr.bin/getent/getent.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getent.1,v 1.8 2010/09/29 07:44:56 jmc Exp $
+.\" $OpenBSD: getent.1,v 1.9 2010/10/01 07:06:16 jmc Exp $
.\" $NetBSD: getent.1,v 1.13 2005/09/11 23:16:15 wiz Exp $
.\"
.\" Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: September 29 2010 $
+.Dd $Mdocdate: October 1 2010 $
.Dt GETENT 1
.Os
.Sh NAME
@@ -97,7 +97,7 @@ will be retrieved using the appropriate enumeration function and printed.
.Sh EXIT STATUS
The
.Nm
-utility exits with one of the following value:
+utility exits with one of the following values:
.Pp
.Bl -tag -width Ds -offset indent -compact
.It 0
diff --git a/usr.bin/pr/pr.1 b/usr.bin/pr/pr.1
index 3712cb33793..49fd83acbe1 100644
--- a/usr.bin/pr/pr.1
+++ b/usr.bin/pr/pr.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pr.1,v 1.22 2010/09/29 07:44:56 jmc Exp $
+.\" $OpenBSD: pr.1,v 1.23 2010/10/01 07:06:16 jmc Exp $
.\"
.\" Copyright (c) 1991 Keith Muller.
.\" Copyright (c) 1993
@@ -33,7 +33,7 @@
.\"
.\" from: @(#)pr.1 8.1 (Berkeley) 6/6/93
.\"
-.Dd $Mdocdate: September 29 2010 $
+.Dd $Mdocdate: October 1 2010 $
.Dt PR 1
.Os
.Sh NAME
@@ -353,9 +353,7 @@ and
require that both arguments, if present, not be separated from the option
letter.
.Sh EXIT STATUS
-The
-.Nm pr
-utility exits 0 on success, and 1 if an error occurs.
+.Ex -std pr
.Pp
Error messages are written to standard error during the printing
process (if output is redirected) or after all successful