summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2010-09-03 13:14:56 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2010-09-03 13:14:56 +0000
commit9b0b3dec4534bee5b38c5cf3ff5569cbba5f303b (patch)
tree2df63f9425a430bb75c478166b8a69ad85c31393
parent70e478ac35135aba05018ee81f3fe20921ccd723 (diff)
add EXIT STATUS (these two were hiding...);
-rw-r--r--bin/mt/mt.112
-rw-r--r--usr.bin/printenv/printenv.16
2 files changed, 9 insertions, 9 deletions
diff --git a/bin/mt/mt.1 b/bin/mt/mt.1
index a7c63c332ef..ca37d8b3d75 100644
--- a/bin/mt/mt.1
+++ b/bin/mt/mt.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mt.1,v 1.27 2007/11/03 09:05:33 jmc Exp $
+.\" $OpenBSD: mt.1,v 1.28 2010/09/03 13:14:55 jmc Exp $
.\" $NetBSD: mt.1,v 1.8 1996/05/21 10:23:55 mrg Exp $
.\"
.\" Copyright (c) 1981, 1990, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mt.1 8.1 (Berkeley) 6/6/93
.\"
-.Dd $Mdocdate: November 3 2007 $
+.Dd $Mdocdate: September 3 2010 $
.Dt MT 1
.Os
.Sh NAME
@@ -159,10 +159,6 @@ The
.Ev TAPE
variable is ignored by
.Nm eject .
-.Pp
-.Nm
-returns a 0 exit status when the operation(s) were successful,
-1 if the command was unrecognized, and 2 if an operation failed.
.Sh ENVIRONMENT
If the following environment variable exists, it is utilized by
.Nm mt .
@@ -185,6 +181,10 @@ raw magnetic tape interface
.It Pa /usr/src/sys/scsi/scsi_tape.h
list of SCSI2 density codes
.El
+.Sh EXIT STATUS
+.Nm
+returns a 0 exit status when the operation(s) were successful,
+1 if the command was unrecognized, and 2 if an operation failed.
.Sh EXAMPLES
Eject the first CD device.
This will work even if there is no CD in the drive:
diff --git a/usr.bin/printenv/printenv.1 b/usr.bin/printenv/printenv.1
index 12dd3b60542..6741efc130c 100644
--- a/usr.bin/printenv/printenv.1
+++ b/usr.bin/printenv/printenv.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: printenv.1,v 1.6 2007/05/31 19:20:14 jmc Exp $
+.\" $OpenBSD: printenv.1,v 1.7 2010/09/03 13:14:55 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\"
.\" from: @(#)printenv.1 6.7 (Berkeley) 7/28/91
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: September 3 2010 $
.Dt PRINTENV 1
.Os
.Sh NAME
@@ -48,7 +48,7 @@ If
.Ar name
is specified, only
its value is printed.
-.Pp
+.Sh EXIT STATUS
If a
.Ar name
is specified and it is not defined in the environment,