summaryrefslogtreecommitdiff
path: root/usr.bin/which
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2010-09-03 11:09:30 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2010-09-03 11:09:30 +0000
commit25818e05e234f7e28cf2f85c16dd8fda67d13b61 (patch)
tree75d9b923fe8192de2a66a9228540f829bf0d826b /usr.bin/which
parentd4eeef45f2a89e6c666b0fccd3ea95fee9c88b4d (diff)
add an EXIT STATUS section for /usr/bin;
Diffstat (limited to 'usr.bin/which')
-rw-r--r--usr.bin/which/whereis.18
-rw-r--r--usr.bin/which/which.134
2 files changed, 21 insertions, 21 deletions
diff --git a/usr.bin/which/whereis.1 b/usr.bin/which/whereis.1
index ac4f382a4fb..bfd8af69486 100644
--- a/usr.bin/which/whereis.1
+++ b/usr.bin/which/whereis.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: whereis.1,v 1.11 2007/08/14 17:41:10 sobrado Exp $
+.\" $OpenBSD: whereis.1,v 1.12 2010/09/03 11:09:29 jmc Exp $
.\" $NetBSD: whereis.1,v 1.4 1995/08/31 21:54:51 jtc Exp $
.\"
.\" Copyright (c) 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)whereis.1 8.3 (Berkeley) 4/27/95
.\"
-.Dd $Mdocdate: August 14 2007 $
+.Dd $Mdocdate: September 3 2010 $
.Dt WHEREIS 1
.Os
.Sh NAME
@@ -58,12 +58,12 @@ If the
flag is given,
.Nm
will return a list of all matches instead of just the first match.
-.Pp
+.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
.Pp
-.Bl -tag -width 4n -compact
+.Bl -tag -width Ds -offset indent -compact
.It 0
All names were successfully resolved.
.It 1
diff --git a/usr.bin/which/which.1 b/usr.bin/which/which.1
index fd74570b6f5..f36b41ee446 100644
--- a/usr.bin/which/which.1
+++ b/usr.bin/which/which.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: which.1,v 1.19 2009/03/21 18:07:41 sobrado Exp $
+.\" $OpenBSD: which.1,v 1.20 2010/09/03 11:09:29 jmc Exp $
.\"
.\" Copyright (c) 1980, 1991 Regents of the University of California.
.\" All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)which.1 6.3 (Berkeley) 4/23/91
.\"
-.Dd $Mdocdate: March 21 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt WHICH 1
.Os
.Sh NAME
@@ -50,21 +50,6 @@ If the
flag is given,
.Nm
will return a list of all matches instead of just the first match.
-.Pp
-The
-.Nm
-utility exits with one of the following values:
-.Pp
-.Bl -tag -width 4n -compact
-.It 0
-All names were successfully resolved.
-.It 1
-Some names were resolved but not all.
-.It 2
-No names were resolved.
-.It \-1
-A system error occurred.
-.El
.Sh ENVIRONMENT
The following environment variables affect the execution of
.Nm which :
@@ -78,6 +63,21 @@ or relative pathname,
.Nm
will fail.
.El
+.Sh EXIT STATUS
+The
+.Nm
+utility exits with one of the following values:
+.Pp
+.Bl -tag -width Ds -offset indent -compact
+.It 0
+All names were successfully resolved.
+.It 1
+Some names were resolved but not all.
+.It 2
+No names were resolved.
+.It \-1
+A system error occurred.
+.El
.Sh DIAGNOSTICS
A diagnostic is given if an executable file with the argument
name was not found in the path.