summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-02-26 01:48:50 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-02-26 01:48:50 +0000
commit4d067b3020104a8b19a34fa4d3b6e5e8f3eb036a (patch)
tree5c5752681d5fef7837d22a5d8fb590d4b6003d1d /doc
parente1fe79a9e705e3cab8f632cdbe8e1774cdef2761 (diff)
downloadexecline-4d067b3020104a8b19a34fa4d3b6e5e8f3eb036a.tar.xz
- added forstdinv2.1.1.0
- rewrote forbacktickx as a wrapper around forstdin - removed el_obsolescent - version: rc for 2.1.1.0
Diffstat (limited to 'doc')
-rw-r--r--doc/forbacktickx.html5
-rw-r--r--doc/forstdin.html78
-rw-r--r--doc/index.html3
-rw-r--r--doc/upgrade.html7
4 files changed, 91 insertions, 2 deletions
diff --git a/doc/forbacktickx.html b/doc/forbacktickx.html
index 0780f3d..979a483 100644
--- a/doc/forbacktickx.html
+++ b/doc/forbacktickx.html
@@ -76,7 +76,10 @@ split <em>x</em>. </li>
<ul>
<li> You can start <em>loop...</em> with "import -u <em>variable</em>"
-to perform variable substitution.
+to perform variable substitution. </li>
+ <li> forbacktickx is now implemented as a trivial wrapper around the
+<a href="pipeline.html">pipeline</a> and
+<a href="forstdin.html">forstdin</a> commands. </li>
</ul>
</body>
diff --git a/doc/forstdin.html b/doc/forstdin.html
new file mode 100644
index 0000000..e4c5534
--- /dev/null
+++ b/doc/forstdin.html
@@ -0,0 +1,78 @@
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="Content-Language" content="en" />
+ <title>execline: the forstdin command</title>
+ <meta name="Description" content="execline: the forstdin command" />
+ <meta name="Keywords" content="execline command forstdin" />
+ <!-- <link rel="stylesheet" type="text/css" href="http://skarnet.org/default.css" /> -->
+ </head>
+<body>
+
+<p>
+<a href="index.html">execline</a><br />
+<a href="http://skarnet.org/software/">Software</a><br />
+<a href="http://skarnet.org/">skarnet.org</a>
+</p>
+
+<h1> The <tt>forstdin</tt> program </h1>
+
+<p>
+<tt>forstdin</tt> uses its input as loop elements to
+run another program.
+</p>
+
+<h2> Interface </h2>
+
+<p>
+ In an <a href="execlineb.html">execlineb</a> script:
+</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>
+</pre>
+
+<ul>
+ <li> <tt>forstdin</tt> reads its standard input as it becomes available,
+<a href="el_transform.html#split">splitting</a> it automatically. </li>
+ <li> For every argument <em>x</em> in the split output,
+<tt>forstdin</tt> runs <em>loop...</em> as a child process, with
+<em>variable</em>=<em>x</em> added to its environment. </li>
+ <li><tt>forstdin</tt> then exits 0.
+</ul>
+
+<h2> Options </h2>
+
+<ul>
+ <li> <tt>-p</tt>&nbsp;: parallel mode. Do not wait for a <em>loop...</em>
+instance to finish before spawning the next one. <em>forbacktickx</em> will
+still wait for all instances of <em>loop</em> to terminate before
+exiting, though. </li>
+ <li> <tt>-0</tt>&nbsp;: accept null characters on its stdin,
+using them as delimiters. If this option and a <tt>-d</tt> option are
+used simultaneously, the rightmost one wins. </li>
+ <li> <tt>-o</tt>&nbsp;<em>okcodes</em>&nbsp;: <em>okcodes</em> must
+be a comma-separated list of exit codes. If the <tt>-p</tt> flag
+hasn't been given and <em>loop</em> exits with one of the codes in
+<em>okcodes</em>,
+forstdin will run the following instances of the loop, but if the exit code is
+not listed in <em>okcodes</em>, forstdin will exit immediately with an
+<a href="exitcodes.html">approximation</a> of the same exit code. </li>
+ <li> <tt>-x</tt>&nbsp;<em>breakcodes</em>&nbsp;: like the previous
+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> 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>
+</ul>
+
+<h2> Notes </h2>
+
+<ul>
+ <li> You can start <em>loop...</em> with "import -u <em>variable</em>"
+to perform variable substitution. </li>
+</ul>
+
+</body>
+</html>
diff --git a/doc/index.html b/doc/index.html
index 5b19477..bc2e020 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -66,7 +66,7 @@ library. </li>
<h3> Download </h3>
<ul>
- <li> The current released version of execline is <a href="execline-2.1.0.0.tar.gz">2.1.0.0</a>. </li>
+ <li> The current released version of execline is <a href="execline-2.1.1.0.tar.gz">2.1.1.0</a>. </li>
<li> Alternatively, you can checkout a copy of the execline git repository:
<pre> git clone git://git.skarnet.org/execline </pre> </li>
</ul>
@@ -167,6 +167,7 @@ to your installation: the shebang lines for your system might be something like
</p>
<ul>
<li><a href="forx.html">The <tt>forx</tt> program</a></li>
+<li><a href="forstdin.html">The <tt>forstdin</tt> program</a></li>
<li><a href="forbacktickx.html">The <tt>forbacktickx</tt> program</a></li>
<li><a href="loopwhilex.html">The <tt>loopwhilex</tt> program</a></li>
</ul>
diff --git a/doc/upgrade.html b/doc/upgrade.html
index b66a215..ce0e74f 100644
--- a/doc/upgrade.html
+++ b/doc/upgrade.html
@@ -17,6 +17,13 @@
<h1> What has changed in execline </h1>
+<h2> in 2.1.1.0 </h2>
+
+<ul>
+ <li> <a href="forstdin.html">forstdin</a> added </li>
+ <li> forbacktickx rewritten as a wrapper around pipeline and forstdin </li>
+</ul>
+
<h2> in 2.1.0.0 </h2>
<ul>