summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1997-01-07 15:57:48 +0000
committerniklas <niklas@openbsd.org>1997-01-07 15:57:48 +0000
commit218f70cff8f6ce6108fa84252d95062bc0951bd6 (patch)
tree1e6fa5fc690b8dc9c8759109c1be18a24dfbbe9f
parentReturn a sane return value so the bsd.port.mk conditions work (diff)
downloadwireguard-openbsd-218f70cff8f6ce6108fa84252d95062bc0951bd6.tar.xz
wireguard-openbsd-218f70cff8f6ce6108fa84252d95062bc0951bd6.zip
Document the exit values
-rw-r--r--usr.bin/which/which.114
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.bin/which/which.1 b/usr.bin/which/which.1
index 5eb92a3cc99..16170693ddc 100644
--- a/usr.bin/which/which.1
+++ b/usr.bin/which/which.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: which.1,v 1.2 1996/06/26 05:42:58 deraadt Exp $
+.\" $OpenBSD: which.1,v 1.3 1997/01/07 15:57:48 niklas Exp $
.\" Copyright (c) 1980, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -53,6 +53,18 @@ and searched for along the user's path.
Both aliases and path are taken from the user's
.Pa \&.cshrc
file.
+.Pp
+The
+.Nm which
+utility exits with one of the following values:
+.Bl -tag -width 4n
+.It 0
+All names got successfully resolved.
+.It 1
+Some names got resolved but not all.
+.It 2
+No names got resolved.
+.El
.Sh FILES
.Bl -tag -width ~/\&.cshrc
.It Pa ~/\&.cshrc