which.1 - sbase - suckless unix tools | |
git clone git://git.suckless.org/sbase | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
which.1 (576B) | |
--- | |
1 .Dd October 8, 2015 | |
2 .Dt WHICH 1 | |
3 .Os sbase | |
4 .Sh NAME | |
5 .Nm which | |
6 .Nd locate programs in the path | |
7 .Sh SYNOPSIS | |
8 .Nm | |
9 .Op Fl a | |
10 .Ar name ... | |
11 .Sh DESCRIPTION | |
12 .Nm | |
13 looks for each | |
14 .Ar name | |
15 in the | |
16 .Ev PATH | |
17 directories, stopping at the first match and printing | |
18 the full path to stdout. | |
19 .Sh OPTIONS | |
20 .Bl -tag -width Ds | |
21 .It Fl a | |
22 Don't stop at the first match and search all | |
23 .Ev PATH | |
24 directories. | |
25 .El | |
26 .Sh EXIT STATUS | |
27 .Bl -tag -width Ds | |
28 .It 0 | |
29 Each | |
30 .Ar name | |
31 was found. | |
32 .It 1 | |
33 At least one | |
34 .Ar name | |
35 was not found. | |
36 .It 2 | |
37 No | |
38 .Ar name | |
39 was found. | |
40 .It 3 | |
41 An error occurred. | |
42 .El | |
43 .Sh SEE ALSO | |
44 .Xr environ 7 |