ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahz_5.4.0.1/unset.htm

81 lines
1.9 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>unset - Unset values of variables and functions</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>unset - Unset values of variables and functions</h2>
<strong>Synopsis</strong>
<p><strong>unset</strong> [ <strong>-fv</strong> ] [ <em>name</em>
... ]</p>
<p><strong>Description</strong></p>
<p>You can use <strong>unset</strong> to unset each variable or
function specified by name. If no option is specified, <em>
name</em> refers to a variable. Variables with the read-only
attribute cannot be unset.</p>
<p><strong>Options</strong></p>
<dl>
<dt><strong>-f</strong></dt>
<dd><em>name</em> refers to a function.</dd>
<dt><strong>-v</strong></dt>
<dd><em>name</em> refers to a variable.</dd>
</dl>
<p><strong>Operands</strong></p>
<p>Each <em>name</em> is a variable or function.</p>
<p><strong>Exit Status</strong></p>
<ul>
<li>0 when successful.</li>
<li>&gt;0 when at least one <em>name</em> could not be found. The
value is the number of <em>names</em> that are not found.</li>
</ul>
<p><strong>Related information</strong></p>
<ul>
<li><a href="export.htm">export - Set export attribute for
variables</a></li>
<li><a href="local.htm">local - Assign a local variable in a
function</a></li>
<li><a href="readonly.htm">readonly - Set read-only attribute for
variables</a></li>
<li><a href="set.htm">set - Set or unset options and positional
parameters</a></li>
</ul>
<strong>Examples</strong>
<ol>
<li>Unset the variable alpha: unset alpha</li>
<li>Unset the function foo: unset -f foo</li>
</ol>
</body>
</html>