summaryrefslogtreecommitdiff
path: root/usr.bin/which
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/which')
-rw-r--r--usr.bin/which/which.122
1 files changed, 7 insertions, 15 deletions
diff --git a/usr.bin/which/which.1 b/usr.bin/which/which.1
index fb92b85b859..4598a3cdd3b 100644
--- a/usr.bin/which/which.1
+++ b/usr.bin/which/which.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: which.1,v 1.16 2007/08/14 17:41:10 sobrado Exp $
+.\" $OpenBSD: which.1,v 1.17 2009/01/06 23:29:03 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: August 14 2007 $
+.Dd $Mdocdate: January 6 2009 $
.Dt WHICH 1
.Os
.Sh NAME
@@ -51,6 +51,11 @@ flag is given,
.Nm
will return a list of all matches instead of just the first match.
.Pp
+.Nm
+also exists as a built-in to
+.Xr csh 1 ,
+though with a different syntax.
+.Pp
The
.Nm
utility exits with one of the following values:
@@ -85,7 +90,6 @@ name was not found in the path.
.Xr csh 1 ,
.Xr find 1 ,
.Xr locate 1 ,
-.Xr sh 1 ,
.Xr whereis 1 ,
.Xr environ 7
.Sh HISTORY
@@ -93,15 +97,3 @@ A
.Nm
command appeared in
.Bx 3.0 .
-.Sh CAVEATS
-The
-.Nm
-command formerly was a
-.Xr csh 1
-script and could expand aliases.
-.Xr csh 1
-now has a built-in
-.Nm
-command so this version is intended for use
-with other shells like
-.Xr sh 1 .