date and time created 88/03/30 15:59:51 by bostic
[unix-history] / usr / src / old / which / which.1
CommitLineData
e921e2fa
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
f6ca375e 5.\" @(#)which.1 6.1 (Berkeley) %G%
e921e2fa 6.\"
f6ca375e 7.TH WHICH 1 ""
e921e2fa
KM
8.UC
9.SH NAME
10which \- locate a program file including aliases and paths (\fIcsh\fR only)
11.SH SYNOPSIS
12.B which
13[ name ] ...
14.SH DESCRIPTION
15.I Which
16takes a list of names and looks for the files which would be
17executed had these names been given as commands.
18Each argument is expanded if it is aliased,
19and searched for along the user's path.
20Both aliases and path are taken from the user's \&.cshrc file.
21.SH FILES
22.ta 1i
23~/\&.cshrc source of aliases and path values
24.SH DIAGNOSTICS
25A diagnostic is given for names which are aliased to more than a single
26word,
27or if an executable file with the argument name was not found in the path.
28.SH BUGS
e921e2fa 29Must be executed by a csh, since only csh's know about aliases.