Commit | Line | Data |
---|---|---|
9ab44e69 C |
1 | .TH WHICH 1 "10 October 1979" |
2 | .UC | |
3 | .SH NAME | |
4 | which \- locate a program file including aliases and paths (\fIcsh\fR only) | |
5 | .SH SYNOPSIS | |
6 | .B which | |
7 | [ name ] ... | |
8 | .SH DESCRIPTION | |
9 | .I Which | |
10 | takes a list of names and looks for the files which would be | |
11 | executed had these names been given as commands. | |
12 | Each argument is expanded if it is aliased, | |
13 | and searched for along the user's path. | |
14 | Both aliases and path are taken from the user's \&.cshrc file. | |
15 | .SH FILES | |
16 | .ta 1i | |
17 | ~/\&.cshrc source of aliases and path values | |
18 | .SH DIAGNOSTICS | |
19 | A diagnostic is given for names which are aliased to more than a single | |
20 | word, | |
21 | or if an executable file with the argument name was not found in the path. | |
22 | .SH BUGS | |
23 | Must be executed by a csh, since only csh's know about aliases. |