fix to reeves fix of dgo handling (reset b_active to 1)
[unix-history] / .ref-BSD-3 / usr / man / man1 / which.1
CommitLineData
f21959fa
BJ
1.TH WHICH 1 10/10/79
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
23Only aliases and paths from ~/\&.cshrc are used, importing from the current
24environment is not attempted.
25Must be executed by a csh, since only csh's know about aliases.