diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-03-20 11:09:47 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-03-20 11:09:47 +0000 |
commit | 8bb0387553c0585d32264b5b5a51b92c97f7bb6f (patch) | |
tree | 57898434af08bcd58b86fe28587e074a8a469e2d /doc/forx.html | |
parent | 63f3823d52d5650d31d3e5ddc267ab4afce016ad (diff) | |
download | execline-8bb0387553c0585d32264b5b5a51b92c97f7bb6f.tar.xz |
Add -px/-po support to forx (thanks Aranea); rc for 2.1.5.0
Diffstat (limited to 'doc/forx.html')
-rw-r--r-- | doc/forx.html | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/doc/forx.html b/doc/forx.html index 8bc84b4..31804af 100644 --- a/doc/forx.html +++ b/doc/forx.html @@ -29,7 +29,7 @@ </p> <pre> - forx [ -p | -o <em>okcodes</em> | -x <em>breakcodes</em> ] <em>variable</em> { <em>args...</em> } <em>loop...</em> + forx [ -p ] [ -o <em>okcodes</em> | -x <em>breakcodes</em> ] <em>variable</em> { <em>args...</em> } <em>loop...</em> </pre> <ul> @@ -45,14 +45,9 @@ That block contains a list of <em>args</em>. </li> <h2> Options </h2> <ul> - <li> <tt>-p</tt> : run in parallel. Do not wait for an instance of -<em>loop...</em> to exit before spawning the next one. <tt>forx</tt> -will still wait for all instances of <em>loop</em> to terminate before -exiting, though. </li> <li> <tt>-o</tt> <em>okcodes</em> : <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>, +be a comma-separated list of exit codes. If +<em>loop</em> exits with one of the codes in <em>okcodes</em>, forx will run the following instances of the loop, but if the exit code is not listed in <em>okcodes</em>, forx will exit immediately with an <a href="exitcodes.html">approximation</a> of the same exit code. </li> @@ -60,6 +55,14 @@ not listed in <em>okcodes</em>, forx will exit immediately with an option, but with inverted meaning - the listed exit codes are codes that will make forx break the loop and exit, and the unlisted exit codes will make it keep looping. </li> + <li> <tt>-p</tt> : run in parallel. Do not wait for an instance of +<em>loop...</em> to exit before spawning the next one. <tt>forx</tt> +will still wait for all instances of <em>loop</em> to terminate before +exiting 0. If the <tt>-o</tt> option has been given, <tt>forx</tt> +will exit 0 if all of the exit codes are in the values listed in the <em>okcodes</em> +list, else it will exit 1. If the <tt>-x</tt> option has been given, +<tt>forx</tt> will exit 0 if none of the exit codes are in the values +listed in the <em>breakcodes</em> list, else it will exit 1. </li> </ul> <h2> Notes </h2> |