summaryrefslogtreecommitdiff
path: root/doc/backtick.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-06-18 18:11:53 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-06-18 18:11:53 +0000
commitbdd970fe719f78ba0b13446190ede748e3f8fb4d (patch)
treeea4a80588e0b825db5a54e48428a7f2169b59fa6 /doc/backtick.html
parent6b91dc463642bbd63a6142f198d3710c42e74c2f (diff)
downloadexecline-bdd970fe719f78ba0b13446190ede748e3f8fb4d.tar.xz
Revert backtick to a non-wrapper; add -I to backtick and withstdinas
Diffstat (limited to 'doc/backtick.html')
-rw-r--r--doc/backtick.html27
1 files changed, 17 insertions, 10 deletions
diff --git a/doc/backtick.html b/doc/backtick.html
index 6aa2f01..694a29d 100644
--- a/doc/backtick.html
+++ b/doc/backtick.html
@@ -46,20 +46,27 @@ output as a value. </li>
<h2> Options </h2>
<ul>
- <li> <tt>-i</tt>&nbsp;: insist. If <em>prog1</em> crashes or exits non-zero,
-<tt>backtick</tt> exits with an
-<a href="exitcodes.html">approximation</a> of the same exit code. </li>
- <li> <tt>-D&nbsp;<em>default</em></tt>&nbsp;: default value. If
-<em>prog1</em> crashes or exits non-zero, <em>default</em> is used as
-<em>variable</em>'s value. If neither the <tt>-i</tt> nor the <tt>-D</tt>
-option have been given, <tt>backtick</tt> execs into
-<em>prog2...</em> no matter what <em>prog1</em> does, with the null word as
-<em>variable</em>'s value if <em>prog1</em> didn't write anything before
-dying. </li>
<li> <tt>-n</tt>&nbsp;: chomp an ending newline off <em>prog1...</em>'s
output. </li>
</ul>
+<p>
+ The other options tell backtick what to do if <em>prog1...</em>'s output
+is not suitable as the contents of an environment variable, i.e. it
+contains a null character:
+</p>
+
+<ul>
+ <li> <tt>-i</tt>&nbsp;: backtick exits 1. </li>
+ <li> <tt>-I</tt>&nbsp;: <em>variable</em> is <strong>removed</strong> from
+the environment, and execution proceeds. </li>
+ <li> <tt>-D&nbsp;<em>default</em></tt>&nbsp;: the value of <em>variable</em>
+is set to <em>default</em>, and execution proceeds. </li>
+ <li> neither of those options: the value of <em>variable</em> is set to whatever
+the start of <em>prog1...</em>'s output is, up to the first null character;
+then execution proceeds. </li>
+</ul>
+
<h2> Notes </h2>
<ul>