From 60eca880ee450f822fc32cf5bd9c32ab04b6956a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 12 Oct 2026 00:58:40 +0000 Subject: Add dollarsharp, rewrite wait Entirely untested, will test now --- doc/dollarsharp.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++ doc/index.html | 12 ++++++++++++ doc/upgrade.html | 4 ++++ doc/wait.html | 49 +++++++++++++++++++++++++++++++------------------ 4 files changed, 93 insertions(+), 18 deletions(-) create mode 100644 doc/dollarsharp.html (limited to 'doc') diff --git a/doc/dollarsharp.html b/doc/dollarsharp.html new file mode 100644 index 0000000..4643775 --- /dev/null +++ b/doc/dollarsharp.html @@ -0,0 +1,46 @@ + + + + + + + execline: the dollarsharp command + + + + + + +

+execline
+Software
+skarnet.org +

+ +

The dollarsharp program

+ +

+dollarsharp prints the number of arguments it is called with. +

+ +

Interface

+ +
+     dollarsharp [ args ]
+
+ +

(Miscellaneous) @@ -252,5 +253,16 @@ the execline documentation as a skaware mailing-list. +

Support this work

+ +

+ If you like this skarnet.org project, you can donate to the author via Liberapay, +by clicking the following button: + + +

+ diff --git a/doc/upgrade.html b/doc/upgrade.html index 31de4b9..de3fbf4 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -27,6 +27,10 @@ been removed, due to POSIX relaxing requirements on intrinsic utilities.
  • The cd binary is now what was previously execline-cd.
  • The umask binary is now what was previously posix-umask, (without locale support, not that it had much to start with)
  • +
  • loopwhilex -x "" now loops forever. The -n +option has been removed.
  • +
  • wait has slightly different options. When given a +non-empty list of pids, it only waits for these pids and doesn't touch the others.
  • in 2.9.9.2

    diff --git a/doc/wait.html b/doc/wait.html index 44197a0..d38b06a 100644 --- a/doc/wait.html +++ b/doc/wait.html @@ -30,7 +30,7 @@

    -     wait [ -I | -i ] [ -a | -o ] [ -r | -t timeout ] { [ pids... ] } prog...
    +     wait [ -a | -o ] [ -u ] [ -t timeout ] { [ pids... ] } prog...
     

    Options

    + +

    Environment variables

    + +

    + If the -u option has been given, wait execs into prog... +with the ! and ? environment variables unset. Same thing if an +error occurred before wait could successfully reap a zombie. +

    + +

    + Otherwise, the ! environment variable is set to the pid of a reapt zombie, +and the ? environment variable is set to its exit code. Here is how wait +decides what pid to report: +

    + +

    Notes

    -- cgit v1.3.1