From c324c1de58f05cd8bd86cb15f68e20ac4f56fc7e Mon Sep 17 00:00:00 2001 From: aathan Date: Tue, 14 Jun 2022 22:40:15 -0700 Subject: [PATCH] Add wait builtin info from SIGNALS The SIGNAL section of the bash man page includes additional information about it's behavior that is not mentioned in the wait builtin doc itself. If it's undesirable to duplicate that text, perhaps at least it should say "See SIGNALS section for additional information." --- doc/builtins.0 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/builtins.0 b/doc/builtins.0 index 3706dad4..ef82541d 100644 --- a/doc/builtins.0 +++ b/doc/builtins.0 @@ -1777,6 +1777,10 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS returns its exit status. If _n specifies a non-existent process or job, the return status is 127. Otherwise, the return status is the exit status of the last process or job waited for. + When bash is waiting for an asynchronous command via the wait builtin, + the reception of a signal for which a trap has been set will cause + the wait builtin to return immediately with an exit status greater + than 128, immediately after which the trap is executed. SSEEEE AALLSSOO bash(1), sh(1)