148600Scael.\" Copyright (c) 1980, 1991 Regents of the University of California. 248332Sbostic.\" All rights reserved. 319352Smckusick.\" 448332Sbostic.\" %sccs.include.redist.roff% 519352Smckusick.\" 6*63520Smckusick.\" @(#)which.1 6.4 (Berkeley) 06/17/93 748332Sbostic.\" 848600Scael.Dd 948600Scael.Dt WHICH 1 1048600Scael.Os BSD 3 1148600Scael.Sh NAME 1248600Scael.Nm which 13*63520Smckusick.Nd locate a program file including aliases and paths 1448600Scael.Sh SYNOPSIS 1548600Scael.Nm which 1648600Scael.Op Ar name 1748600Scael.Ar ... 1848600Scael.Sh DESCRIPTION 1948600Scael.Nm Which 2019352Smckusicktakes a list of names and looks for the files which would be 2119352Smckusickexecuted had these names been given as commands. 2219352SmckusickEach argument is expanded if it is aliased, 2319352Smckusickand searched for along the user's path. 2448600ScaelBoth aliases and path are taken from the user's 2548600Scael.Pa \&.cshrc 2648600Scaelfile. 2748600Scael.Sh FILES 2848600Scael.Bl -tag -width ~/\&.cshrc 2948600Scael.It Pa ~/\&.cshrc 3048600Scaelsource of aliases and path values 3148600Scael.El 3248600Scael.Sh DIAGNOSTICS 3319352SmckusickA diagnostic is given for names which are aliased to more than a single 3419352Smckusickword, 3519352Smckusickor if an executable file with the argument name was not found in the path. 3648600Scael.Sh BUGS 3748600ScaelMust be executed by a 3848600Scael.Xr csh 1 , 3948600Scaelor some other shell which knows about aliases. 4048600Scael.Sh HISTORY 4148600ScaelThe 4248600Scael.Nm 4348600Scaelcommand appeared in 4448600Scael.Bx 3.0 . 45