version 1.5, 1997/04/08 02:44:06 |
version 1.6, 1998/01/28 17:18:52 |
|
|
.Nd "locate a program file (or files) in the path" |
.Nd "locate a program file (or files) in the path" |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm which |
.Nm which |
|
.Op Fl a |
.Op Ar name |
.Op Ar name |
.Ar ... |
.Ar ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
|
|
takes a list of names and looks for the files which would be |
takes a list of names and looks for the files which would be |
executed had these names been given as commands. |
executed had these names been given as commands. |
Each argument is searched for along the user's path. |
Each argument is searched for along the user's path. |
|
.Pp |
|
If the |
|
.Fl a |
|
flag is given, |
|
.Nm |
|
will return a list of all matches instead of just the first match. |
.Sh RETURN VALUES |
.Sh RETURN VALUES |
The |
The |
.Nm |
.Nm |