summaryrefslogtreecommitdiff
path: root/doc/runblock.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-01-27 11:57:36 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-01-27 11:57:36 +0000
commit54da37443c1c9a9a0a4cc6ee38932f6623fa8e06 (patch)
tree85d6fe67f8b8dc654753a19e6c13f0a7af25ae3d /doc/runblock.html
parentfc71200d67593c4a2d7b3105dc592c3ac96e725c (diff)
downloadexecline-54da37443c1c9a9a0a4cc6ee38932f6623fa8e06.tar.xz
Extend runblock functionality (thanks Profpatsch)
Diffstat (limited to 'doc/runblock.html')
-rw-r--r--doc/runblock.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/runblock.html b/doc/runblock.html
index 476f801..f090f85 100644
--- a/doc/runblock.html
+++ b/doc/runblock.html
@@ -23,12 +23,14 @@
in the execline language. It can only be used inside an execline
script. If the script has been given blocks as arguments, <tt>runblock</tt>
allows you to execute one of the blocks individually.
+It also allows you to give those blocks as a set of arguments to
+another command.
</p>
<h2> Interface </h2>
<pre>
- runblock [ -P ] [ -n <em>argshift</em> ] [ -r ] <em>n</em>
+ runblock [ -P ] [ -n <em>argshift</em> ] [ -r ] <em>n</em> <em>cmd...</em>
</pre>
<ul>
@@ -41,6 +43,9 @@ arguments <em>and</em> blocks. </li>
<em>n</em> blocks and execs into the remaining arguments. </li>
<li> Else it skips <em>n</em>-1 blocks and execs into the <em>n</em>th
one. </li>
+ <li> If <em>cmd...<em> is not empty, then instead of directly executing the
+block or the remainder, <tt>runblock</tt> <em>appends</em> the selected
+set of arguments to the <em>cmd...</em> command line. </li>
<li> Normally <tt>runblock</tt> <a href="el_pushenv.html#pop">pops</a>
its environment frame before executing. If the <tt>-P</tt> option has
been given, it <em>does not</em> pop. </li>