version 1.7, 1998/05/13 10:33:27 |
version 1.8, 1998/10/30 00:24:43 |
|
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm which |
.Nm which |
.Op Fl a |
.Op Fl a |
.Op Ar name |
.Ar name Op Ar ... |
.Ar ... |
|
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm Which |
.Nm which |
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. |
|
|
utility exits with one of the following values: |
utility exits with one of the following values: |
.Bl -tag -width 4n |
.Bl -tag -width 4n |
.It 0 |
.It 0 |
All names got successfully resolved. |
All names were successfully resolved. |
.It 1 |
.It 1 |
Some names got resolved but not all. |
Some names were resolved but not all. |
.It 2 |
.It 2 |
No names got resolved. |
No names were resolved. |
.It -1 |
.It -1 |
A system error occurred. |
A system error occurred. |
.El |
.El |