The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<html><head><title>which</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
</head>
<body class='pod'>
<!--
  generated by Pod::Simple::HTML v3.01,
  using Pod::Simple::PullParser v2.02,
  under Perl v5.008002 at Thu Aug  5 13:56:38 2004 GMT.

 If you want to change this HTML document, you probably shouldn't do that
   by changing it directly.  Instead, see about changing the calling options
   to Pod::Simple::HTML, and/or subclassing Pod::Simple::HTML,
   then reconverting this document from the Pod source.
   When in doubt, email the author of Pod::Simple::HTML for advice.
   See 'perldoc Pod::Simple::HTML' for more info.

-->

<!-- start doc -->
<a name='___top' class='dummyTopAnchor' ></a>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="NAME"
>NAME</a></h1>

<p>which -- report full paths of commands.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="SYNOPSIS"
>SYNOPSIS</a></h1>

<p>which [option] [commands]</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p><i>which</i> prints the full paths to the commands given as arguments,
depending on the <i>$PATH</i> environment variable.
Nothing is printed if the command is not found.</p>

<h2><a class='u' href='#___top' title='click to go to top of document'
name="OPTIONS"
>OPTIONS</a></h2>

<p><i>which</i> accepts the following options:</p>

<dl>
<dt><a name="--help"
>--help</a></dt><p class="pad"></p>

<dd>Print out a short help message,
then exit.</dd><p class="pad"></p>

<dt><a name="--version"
>--version</a></dt><p class="pad"></p>

<dd>Print out its version number,
then exit.</dd><p class="pad"></p>

<dt><a name="-a"
>-a</a></dt><p class="pad"></p>

<dd>Print out all instances of command on <i>$PATH</i> not just the first.</dd><p class="pad"></p>

<dt><a name="--"
>--</a></dt><p class="pad"></p>

<dd>Stop parsing for options.
Useful if you want to find where in your path the commands <i>--help</i>,
<i>-a</i>,
and <i>--version</i> are found.
Use <i>which -- --</i> to find the path to <i>--</i>.</dd><p class="pad"></p>
</dl>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="ENVIRONMENT"
>ENVIRONMENT</a></h1>

<p>The environment variable <i>$PATH</i> (also <i>DCL$PATH</i> under DCL; or <i>$Commands</i> under MPW) is used to find the list of directories to check for commands.
The variable <i>%PATHEXT%</i> is examined for command extensions if it exists.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="BUGS"
>BUGS</a></h1>

<p><i>which</i> has no known bugs.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="COMPATABILITY"
>COMPATABILITY</a></h1>

<p>Traditionally,
<i>which</i> also parses ones <em lang='und' xml:lang='und'>~/.cshrc</em> file to look for aliases,
and reporting the alias when applicable.
This version of <i>which</i> does not do that,
because there are more shells than <i>csh</i>.</p>

<p><i>which</i> will examine aliases under MPW (Mac) and symbols under DCL (VMS).</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="REVISION_HISTORY"
>REVISION HISTORY</a></h1>

<pre lang='und' xml:lang='und'>    $Log: which.abigail.html,v $
<pre lang='und' xml:lang='und'>    Revision 1.3  2004/08/05 14:24:37  cwest
<pre lang='und' xml:lang='und'>    cleanup, new version number on website
<pre lang='und' xml:lang='und'>
    Revision 1.1  2004/07/23 20:10:21  cwest
    initial import

    Revision 1.1  1999/02/25 04:57:21  abigail
    Initial revision</pre>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="AUTHOR"
>AUTHOR</a></h1>

<p>The Perl implementation of <i>which</i> was written by Abigail, <i>abigail@fnx.com</i>. Portability enhancements by Peter Prymmer.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="COPYRIGHT_and_LICENSE"
>COPYRIGHT and LICENSE</a></h1>

<p>This program is copyright by Abigail 1999.</p>

<p>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.</p>

<!-- end doc -->

</body></html>