Re: set -e doesn't trigger when command substitutions returns, why?
From:
Lawrence Velázquez
Subject:
Re: set -e doesn't trigger when command substitutions returns, why?
Date:
Tue, 24 Jun 2025 00:44:27 -0400
On Mon, Jun 23, 2025, at 10:30 PM, nkkralev--- via Bug reports for the GNU
Bourne Again SHell wrote:
> <div>Hello microsuxx,<br><br>Thank you for the replies.<br><br>I did
> some more manual testing, <br><br>the wait -n builtin looks kinda
> sketchy because of what the bash manpage of the builtin wait says,
> during testing I see that wait -n is able to detect that $? has become
> -1 in the trap handler command, but if the trap handler command checks
> $? directly then suddenly the trap handler doesn't run??? https://lists.gnu.org/archive/html/bug-bash/2025-06/msg00136.html
--
vq