which -- report full paths of commands.
which [option] [commands]
which prints the full paths to the commands given as arguments, depending on the $PATH environment variable. Nothing is printed if the command is not found.
which accepts the following options:
The environment variable $PATH (also DCL$PATH under DCL; or $Commands under MPW) is used to find the list of directories to check for commands. The variable %PATHEXT% is examined for command extensions if it exists.
which has no known bugs.
Traditionally, which also parses ones ~/.cshrc file to look for aliases, and reporting the alias when applicable. This version of which does not do that, because there are more shells than csh.
which will examine aliases under MPW (Mac) and symbols under DCL (VMS).
$Log: which.abigail.html,v $
Revision 1.3 2004/08/05 14:24:37 cwest
cleanup, new version number on website
Revision 1.1 2004/07/23 20:10:21 cwest
initial import
Revision 1.1 1999/02/25 04:57:21 abigail
Initial revision
AUTHOR
The Perl implementation of which was written by Abigail, abigail@fnx.com. Portability enhancements by Peter Prymmer.
COPYRIGHT and LICENSE
This program is copyright by Abigail 1999.
This program is free and open software. You may use, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same.