Bogus exit code 127 from a child process
Dimitry Andric
dimitry@unified-streaming.com
Sun Mar 17 12:50:24 GMT 2024
On 17 Mar 2024, at 13:35, Takashi Yano via Cygwin <cygwin@cygwin.com> wrote:
...
>
> I also test your test case:
> while bash -c 'true & true & wait -n || { echo 1: $?; exit 1; } && wait -n || { echo 2: $?; exit 1; }'; do echo $((i++)); done
> in Linux (Debian 12.5), and the issue reproduced!
Yeah, same here with bash 5.1.16(1)-release on Ubuntu 22.04. It errors out with 127 after ~50-200 loops.
-Dimitry
More information about the Cygwin
mailing list