From 3d91d9ce645efa020800b85be1ac2727ebcbad19 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 6 Nov 2024 08:05:33 +0000 Subject: Prepare for 2.9.7.0 ; rework forx/forstdin -p, add -P maxpar Also refactor several things to keep global footprint low Signed-off-by: Laurent Bercot --- doc/forstdin.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'doc/forstdin.html') diff --git a/doc/forstdin.html b/doc/forstdin.html index 25f951f..14b9a3b 100644 --- a/doc/forstdin.html +++ b/doc/forstdin.html @@ -50,6 +50,11 @@ and 1 if it hasn't read anything. instance to finish before spawning the next one. forstdin will still wait for all instances of loop to terminate before exiting, though. +
  • -P maxpar : like -p, but only +run up to maxpar instances at a time. Minimum is 1; maximum is +10000. -p is equivalent to -P 10000, i.e. it can +spawn a very large number of loop instances in parallel, but it's +technically not infinite.
  • -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 @@ -63,7 +68,7 @@ that will make forstdin break the loop and exit, and the unlisted exit codes will make it keep looping.
  • -e : no autoimport. This is the default.
  • -E : autoimport. Instead of spawning -loop..., spawn importas -ui variable variable +loop..., spawn importas -uSi variable loop.... This substitutes variable into the command line instead of putting it into the environment.
  • @@ -94,12 +99,5 @@ used simultaneously, the rightmost one wins. the input is only split on newlines. -

    Notes

    - -
      -
    • You can start loop... with importas -u variable variable -to perform variable substitution.
    • -
    - -- cgit v1.3.1