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/wait.html | 49 +++++++++++++++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 18 deletions(-) (limited to 'doc/wait.html') 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