Commit | Line | Data |
---|---|---|
92043f2b | 1 | .\" Copyright (c) 1980, 1991 Regents of the University of California. |
5f487bdd | 2 | .\" All rights reserved. |
e921e2fa | 3 | .\" |
5f487bdd KB |
4 | .\" %sccs.include.redist.roff% |
5 | .\" | |
92043f2b | 6 | .\" @(#)which.1 6.3 (Berkeley) %G% |
e921e2fa | 7 | .\" |
92043f2b CL |
8 | .Dd |
9 | .Dt WHICH 1 | |
10 | .Os BSD 3 | |
11 | .Sh NAME | |
12 | .Nm which | |
13 | .Nd "locate a program file including aliases and paths" | |
14 | .Pq Xr csh 1 | |
15 | only) | |
16 | .Sh SYNOPSIS | |
17 | .Nm which | |
18 | .Op Ar name | |
19 | .Ar ... | |
20 | .Sh DESCRIPTION | |
21 | .Nm Which | |
e921e2fa KM |
22 | takes a list of names and looks for the files which would be |
23 | executed had these names been given as commands. | |
24 | Each argument is expanded if it is aliased, | |
25 | and searched for along the user's path. | |
92043f2b CL |
26 | Both aliases and path are taken from the user's |
27 | .Pa \&.cshrc | |
28 | file. | |
29 | .Sh FILES | |
30 | .Bl -tag -width ~/\&.cshrc | |
31 | .It Pa ~/\&.cshrc | |
32 | source of aliases and path values | |
33 | .El | |
34 | .Sh DIAGNOSTICS | |
e921e2fa KM |
35 | A diagnostic is given for names which are aliased to more than a single |
36 | word, | |
37 | or if an executable file with the argument name was not found in the path. | |
92043f2b CL |
38 | .Sh BUGS |
39 | Must be executed by a | |
40 | .Xr csh 1 , | |
41 | or some other shell which knows about aliases. | |
42 | .Sh HISTORY | |
43 | The | |
44 | .Nm | |
45 | command appeared in | |
46 | .Bx 3.0 . |