BSD 4_2 development
[unix-history] / usr / man / man1 / which.1
CommitLineData
9ab44e69
C
1.TH WHICH 1 "10 October 1979"
2.UC
3.SH NAME
4which \- 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
10takes a list of names and looks for the files which would be
11executed had these names been given as commands.
12Each argument is expanded if it is aliased,
13and searched for along the user's path.
14Both 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
19A diagnostic is given for names which are aliased to more than a single
20word,
21or if an executable file with the argument name was not found in the path.
22.SH BUGS
23Must be executed by a csh, since only csh's know about aliases.