xref: /original-bsd/old/which/which.1 (revision 3705696b)
1.\" Copyright (c) 1980, 1991 Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"     @(#)which.1	6.4 (Berkeley) 06/17/93
7.\"
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.Sh SYNOPSIS
15.Nm which
16.Op Ar name
17.Ar ...
18.Sh DESCRIPTION
19.Nm Which
20takes a list of names and looks for the files which would be
21executed had these names been given as commands.
22Each argument is expanded if it is aliased,
23and searched for along the user's path.
24Both aliases and path are taken from the user's
25.Pa \&.cshrc
26file.
27.Sh FILES
28.Bl -tag -width ~/\&.cshrc
29.It Pa ~/\&.cshrc
30source of aliases and path values
31.El
32.Sh DIAGNOSTICS
33A diagnostic is given for names which are aliased to more than a single
34word,
35or if an executable file with the argument name was not found in the path.
36.Sh BUGS
37Must be executed by a
38.Xr csh 1 ,
39or some other shell which knows about aliases.
40.Sh HISTORY
41The
42.Nm
43command appeared in
44.Bx 3.0 .
45