summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-06-03 13:31:59 +0000
committerLaurent Bercot <ska@appnovation.com>2024-06-03 13:31:59 +0000
commit9983edf33b1eb4d91bf1187f8e4b7c0c3d288e53 (patch)
tree67333a4882f5e4673dea4b46a649292f369641b1 /doc
parent793dc09daa859b94c69b2f6d9e45e4abf0300069 (diff)
downloadexecline-9983edf33b1eb4d91bf1187f8e4b7c0c3d288e53.tar.xz
Add importas -S
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/importas.html5
-rw-r--r--doc/upgrade.html3
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/importas.html b/doc/importas.html
index ac95e87..ae39de6 100644
--- a/doc/importas.html
+++ b/doc/importas.html
@@ -27,6 +27,7 @@ environment variable, then executes another program.
<pre>
importas [ -i | -D default ] [ -u ] [ -s ] [ -C | -c ] [ -N | -n ] [ -d <em>delim</em> ] <em>variable</em> <em>envvar</em> <em>prog...</em>
+ importas -S [ -i | -D default ] [ -u ] [ -s ] [ -C | -c ] [ -N | -n ] [ -d <em>delim</em> ] <em>envvar</em> <em>prog...</em>
</pre>
<ul>
@@ -54,6 +55,10 @@ error message. This has precedence over any <tt>-D</tt> option. </li>
the environment after the substitution. <tt>importas -u <em>variable</em>
<em>envvar</em></tt> is equivalent to <tt>importas <em>variable</em>
<em>envvar</em> unexport <em>envvar</em></tt>. </li>
+ <li> <tt>-S</tt>&nbsp;: import with same name. This option allows
+<em>variable</em> to be omitted; it will be the same as <em>envvar</em>.
+In other words, <code>importas -S <em>var</em></code> is the same as
+<code>importas <em>var</em> <em>var</em></code>. </li>
<li> Other options are used to <a href="el_transform.html">control
the substitution mechanism</a>. </li>
</ul>
diff --git a/doc/upgrade.html b/doc/upgrade.html
index 17da599..f4cd3dc 100644
--- a/doc/upgrade.html
+++ b/doc/upgrade.html
@@ -25,6 +25,9 @@
dependency bumped to 2.14.2.0. </li>
<li> <a href="elglob.html">elglob</a> now has an option to provide its
results as one word (including the possibility of netstring encoding). </li>
+ <li> <a href="importas.html">importas</a> now has an option that can be
+used instead of repeating a variable when it is imported with the same
+name. </li>
</ul>
<h2> in 2.9.5.1 </h2>