bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `wait -n` returns 127 when it shouldn't


From: Phi Debian
Subject: Re: `wait -n` returns 127 when it shouldn't
Date: Wed, 17 May 2023 17:54:45 +0200

On Wed, May 17, 2023 at 12:21 PM Oğuz İsmail Uysal <
oguzismailuysal@gmail.com> wrote:

>
> This boils down to the following
>
>      true &
>      false &
>      wait -n
>
> There is no guarantee that `wait -n' will report the status of `true',
> the shell may acquire the status of `false' first. It's not a bug
>

Ok for the randomness of result yet the $? should be 0 or 1 never 127 as
the OP asked ? did I miss something?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]