summaryrefslogtreecommitdiff
path: root/doc/forstdin.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-11-23 23:27:31 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-11-23 23:27:31 +0000
commita43216278137fe399cdcea6210e580b445e16197 (patch)
tree99249d45157b13afc7b3dbad07416c065e64a153 /doc/forstdin.html
parent7812e30b70ee3d27c2b01d21d346c52656927858 (diff)
downloadexecline-a43216278137fe399cdcea6210e580b445e16197.tar.xz
New forstdin; new trap; prepare for 2.7.0.0
Diffstat (limited to 'doc/forstdin.html')
-rw-r--r--doc/forstdin.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/forstdin.html b/doc/forstdin.html
index 5228aee..f57ee9c 100644
--- a/doc/forstdin.html
+++ b/doc/forstdin.html
@@ -30,7 +30,7 @@ run another program.
</p>
<pre>
- forstdin [ -p | -o <em>okcodes</em> | -x <em>breakcodes</em> ] [ -n ] [ -C | -c ] [ -0 | -d <em>delim</em> ] <em>variable</em> <em>loop...</em>
+ forstdin [ -p | -o <em>okcodes</em> | -x <em>breakcodes</em> ] [ -e eofcode ] [ -n ] [ -C | -c ] [ -0 | -d <em>delim</em> ] <em>variable</em> <em>loop...</em>
</pre>
<ul>
@@ -63,6 +63,8 @@ not listed in <em>okcodes</em>, forstdin will exit immediately with an
option, but with inverted meaning - the listed exit codes are codes
that will make forstdin break the loop and exit, and the unlisted exit
codes will make it keep looping. </li>
+ <li> <tt>-e</tt>&nbsp;<em>eofcode</em>&nbsp;: if forstdin reads EOF,
+exit <em>eofcode</em>. Default is 0. </li>
<li> Other options are used to <a href="el_transform.html">control
the substitution mechanism</a> for every <em>x</em>. Of course, you can't
split <em>x</em>. </li>