1*48600Scael.\" Copyright (c) 1980, 1991 Regents of the University of California. 248332Sbostic.\" All rights reserved. 319352Smckusick.\" 448332Sbostic.\" %sccs.include.redist.roff% 519352Smckusick.\" 6*48600Scael.\" @(#)which.1 6.3 (Berkeley) 04/23/91 748332Sbostic.\" 8*48600Scael.Dd 9*48600Scael.Dt WHICH 1 10*48600Scael.Os BSD 3 11*48600Scael.Sh NAME 12*48600Scael.Nm which 13*48600Scael.Nd "locate a program file including aliases and paths" 14*48600Scael.Pq Xr csh 1 15*48600Scaelonly) 16*48600Scael.Sh SYNOPSIS 17*48600Scael.Nm which 18*48600Scael.Op Ar name 19*48600Scael.Ar ... 20*48600Scael.Sh DESCRIPTION 21*48600Scael.Nm Which 2219352Smckusicktakes a list of names and looks for the files which would be 2319352Smckusickexecuted had these names been given as commands. 2419352SmckusickEach argument is expanded if it is aliased, 2519352Smckusickand searched for along the user's path. 26*48600ScaelBoth aliases and path are taken from the user's 27*48600Scael.Pa \&.cshrc 28*48600Scaelfile. 29*48600Scael.Sh FILES 30*48600Scael.Bl -tag -width ~/\&.cshrc 31*48600Scael.It Pa ~/\&.cshrc 32*48600Scaelsource of aliases and path values 33*48600Scael.El 34*48600Scael.Sh DIAGNOSTICS 3519352SmckusickA diagnostic is given for names which are aliased to more than a single 3619352Smckusickword, 3719352Smckusickor if an executable file with the argument name was not found in the path. 38*48600Scael.Sh BUGS 39*48600ScaelMust be executed by a 40*48600Scael.Xr csh 1 , 41*48600Scaelor some other shell which knows about aliases. 42*48600Scael.Sh HISTORY 43*48600ScaelThe 44*48600Scael.Nm 45*48600Scaelcommand appeared in 46*48600Scael.Bx 3.0 . 47