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

75 lines
1.9 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!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>env - Set environment for command invocation</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>env - Set environment for command invocation</h2>
<strong>Synopsis</strong>
<p><strong>env [-i | -]</strong> [<em>name=value ...</em>]
[<em>utility</em> [<em>argument ...</em>]]</p>
<p><strong>Description</strong></p>
<p>The <strong>env</strong> utility obtains the current
environment, modifies it according to the arguments, and then
invokes the specified <em>utility</em>. Any <em>arguments</em> are
passed to the <em>utility</em>. If no <em>utility</em> is
specified, the resulting environment is written to standard output
with one <em>name=value</em> per line.</p>
<p><strong>Options</strong></p>
<dl>
<dt><strong>-</strong></dt>
<dd>Invoke the <em>utility</em> with exactly the environment
specified on the command. The inherited environment is ignored
completely.</dd>
<dt><strong>-i</strong></dt>
<dd>Same as '-'.</dd>
</dl>
<p><strong>Operands</strong></p>
<dl>
<dt><em>name=value</em></dt>
<dd>This modifies the run-time environment and is placed into the
inherited environment before the <em>utility</em> is invoked.</dd>
<dt><em>utility</em></dt>
<dd>The name of the command or utility to be invoked.</dd>
<dt><em>argument</em></dt>
<dd>A string to pass to the invoked command or utility.</dd>
</dl>
<p><strong>Exit Status</strong></p>
<ul>
<li>0 when successful</li>
<li>&gt;0 when an error occurs</li>
</ul>
<!-- end ibmbody========================================================= -->
</body>
</html>