From 8bb0387553c0585d32264b5b5a51b92c97f7bb6f Mon Sep 17 00:00:00 2001
From: Laurent Bercot
Date: Sun, 20 Mar 2016 11:09:47 +0000
Subject: Add -px/-po support to forx (thanks Aranea); rc for 2.1.5.0
---
doc/forx.html | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
(limited to 'doc/forx.html')
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 @@
- forx [ -p | -o okcodes | -x breakcodes ] variable { args... } loop...
+ forx [ -p ] [ -o okcodes | -x breakcodes ] variable { args... } loop...
@@ -45,14 +45,9 @@ That block contains a list of args.
Options
- - -p : run in parallel. Do not wait for an instance of
-loop... to exit before spawning the next one. forx
-will still wait for all instances of loop to terminate before
-exiting, though.
- -o okcodes : okcodes must
-be a comma-separated list of exit codes. If the -p flag
-hasn't been given and loop exits with one of the codes in
-okcodes,
+be a comma-separated list of exit codes. If
+loop exits with one of the codes in okcodes,
forx will run the following instances of the loop, but if the exit code is
not listed in okcodes, forx will exit immediately with an
approximation of the same exit code.
@@ -60,6 +55,14 @@ not listed in okcodes, 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.
+ - -p : run in parallel. Do not wait for an instance of
+loop... to exit before spawning the next one. forx
+will still wait for all instances of loop to terminate before
+exiting 0. If the -o option has been given, forx
+will exit 0 if all of the exit codes are in the values listed in the okcodes
+list, else it will exit 1. If the -x option has been given,
+forx will exit 0 if none of the exit codes are in the values
+listed in the breakcodes list, else it will exit 1.
Notes
--
cgit v1.2.3