178 lines
4.7 KiB
HTML
178 lines
4.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 -->
|
|
<!-- Copyright (c) 2001 The Open Group, All Rights Reserved -->
|
|
<title>dot</title>
|
|
</head>
|
|
<body bgcolor="white">
|
|
|
|
<basefont size="3"> <a name="dot"></a> <a name="tag_04_39"></a><!-- dot -->
|
|
<!--header start-->
|
|
<center><font size="2">The Open Group Base Specifications Issue 6<br>
|
|
IEEE Std 1003.1-2001<br>
|
|
Copyright © 2001 The IEEE and The Open Group, All Rights reserved.</font></center>
|
|
|
|
<!--header end-->
|
|
<hr size="2" noshade>
|
|
<h4><a name="tag_04_39_01"></a>NAME</h4>
|
|
|
|
<blockquote>dot - execute commands in the current environment</blockquote>
|
|
|
|
<h4><a name="tag_04_39_02"></a>SYNOPSIS</h4>
|
|
|
|
<blockquote class="synopsis">
|
|
<p><code><tt>.</tt> <i>file</i></code></p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_03"></a>DESCRIPTION</h4>
|
|
|
|
<blockquote>
|
|
<p>The shell shall execute commands from the <i>file</i> in the current environment.</p>
|
|
|
|
<p>If <i>file</i> does not contain a slash, the shell shall use the search path specified by <i>PATH</i> to find the directory
|
|
containing <i>file</i>. Unlike normal command search, however, the file searched for by the <i>dot</i> utility need not be
|
|
executable. If no readable file is found, a non-interactive shell shall abort; an interactive shell shall write a diagnostic
|
|
message to standard error, but this condition shall not be considered a syntax error.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_04"></a>OPTIONS</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_05"></a>OPERANDS</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_06"></a>STDIN</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_07"></a>INPUT FILES</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_08"></a>ENVIRONMENT VARIABLES</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_09"></a>ASYNCHRONOUS EVENTS</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_10"></a>STDOUT</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_11"></a>STDERR</h4>
|
|
|
|
<blockquote>
|
|
<p>The standard error shall be used only for diagnostic messages.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_12"></a>OUTPUT FILES</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_13"></a>EXTENDED DESCRIPTION</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_14"></a>EXIT STATUS</h4>
|
|
|
|
<blockquote>
|
|
<p>Returns the value of the last command executed, or a zero exit status if no command is executed.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_15"></a>CONSEQUENCES OF ERRORS</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<hr>
|
|
<div class="box"><em>The following sections are informative.</em></div>
|
|
|
|
<h4><a name="tag_04_39_16"></a>APPLICATION USAGE</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_17"></a>EXAMPLES</h4>
|
|
|
|
<blockquote>
|
|
<pre>
|
|
<tt>cat foobar
|
|
</tt><b>foo=hello bar=world</b><tt>. foobar
|
|
echo $foo $bar
|
|
</tt><b>hello world</b>
|
|
</pre>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_18"></a>RATIONALE</h4>
|
|
|
|
<blockquote>
|
|
<p>Some older implementations searched the current directory for the <i>file</i>, even if the value of <i>PATH</i> disallowed it.
|
|
This behavior was omitted from this volume of IEEE Std 1003.1-2001 due to concerns about introducing the susceptibility
|
|
to trojan horses that the user might be trying to avoid by leaving <b>dot</b> out of <i>PATH .</i></p>
|
|
|
|
<p>The KornShell version of <i>dot</i> takes optional arguments that are set to the positional parameters. This is a valid
|
|
extension that allows a <i>dot</i> script to behave identically to a function.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_19"></a>FUTURE DIRECTIONS</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_20"></a>SEE ALSO</h4>
|
|
|
|
<blockquote>
|
|
<p><a href="xcu_chap02.html#tag_02_14"><i>Special Built-In Utilities</i></a></p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_04_39_21"></a>CHANGE HISTORY</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<div class="box"><em>End of informative text.</em></div>
|
|
|
|
<hr>
|
|
<hr size="2" noshade>
|
|
<center><font size="2"><!--footer start-->
|
|
UNIX ® is a registered Trademark of The Open Group.<br>
|
|
POSIX ® is a registered Trademark of The IEEE.<br>
|
|
[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href=
|
|
"../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>
|
|
]</font></center>
|
|
|
|
<!--footer end-->
|
|
<hr size="2" noshade>
|
|
</body>
|
|
</html>
|
|
|