90 lines
2.1 KiB
HTML
90 lines
2.1 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<html>
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
|
<meta http-equiv="Content-Type" content=
|
|
"text/html; charset=utf-8">
|
|
<title>whence - Determine how command is interpreted</title>
|
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</HEAD>
|
|
<body bgcolor="#FFFFFF">
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
|
|
|
|
<h2>whence - Determine how command is interpreted</h2>
|
|
|
|
<strong>Synopsis</strong>
|
|
|
|
<p><strong>whence [ -afpv ]</strong> <em>name ...</em></p>
|
|
|
|
<p><strong>Description</strong></p>
|
|
|
|
<p>The <strong>whence</strong> utility displays how each specified
|
|
<em>name</em> is interpreted. The name can be an alias, function, special shell built-in,
|
|
shell built-in, reserved word, or file.</p>
|
|
|
|
<p>Note that <strong>whence</strong> is equivalent to <strong>
|
|
command -v</strong> and <strong>whence -v</strong> is equivalent to
|
|
<strong>command -V</strong>.</p>
|
|
|
|
<p><strong>Options</strong></p>
|
|
|
|
<dl>
|
|
<dt><strong>-a</strong></dt>
|
|
|
|
<dd>Show all uses for <em>name</em>.</dd>
|
|
|
|
<dt><strong>-f</strong></dt>
|
|
|
|
<dd>Do not check to see if <em>name</em> is a function.</dd>
|
|
|
|
<dt><strong>-p</strong></dt>
|
|
|
|
<dd>Do not check to see if <em>name</em> is a reserved word, a
|
|
built-in utility, an alias, or a function.</dd>
|
|
|
|
<dt><strong>-v</strong></dt>
|
|
|
|
<dd>Display the type of <em>name</em>.</dd>
|
|
</dl>
|
|
|
|
<p><strong>Operands</strong></p>
|
|
|
|
<p>Each <em>name</em> is a utility in the current environment.</p>
|
|
|
|
<p><strong>Exit Status</strong></p>
|
|
|
|
<ul>
|
|
<li>0 when every <em>name</em> is found</li>
|
|
|
|
<li>>0 when unsuccessful</li>
|
|
</ul>
|
|
|
|
<p><strong>Related information</strong></p>
|
|
|
|
<ul>
|
|
<li><a href="command.htm">command - Run a simple command</a></li>
|
|
|
|
<li><a href="dot.htm">dot (.) - Run commands in current
|
|
environment</a></li>
|
|
|
|
<li><a href="eval.htm">eval - Construct command by concatenating
|
|
arguments</a></li>
|
|
|
|
<li><a href="type.htm">type - Find type of command</a></li>
|
|
</ul>
|
|
|
|
<strong>Examples</strong>
|
|
|
|
<ol>
|
|
<li>Find the type of the reserved word for:
|
|
<pre>
|
|
whence -v for
|
|
</pre></li>
|
|
</ol>
|
|
</body>
|
|
</html>
|
|
|