[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'wait -n' with and without id arguments
From: |
Zachary Santer |
Subject: |
Re: 'wait -n' with and without id arguments |
Date: |
Mon, 12 Aug 2024 12:05:53 -0400 |
On Mon, Aug 12, 2024 at 11:13 AM Chet Ramey <chet.ramey@case.edu> wrote:
>
> On 8/7/24 2:47 PM, Zachary Santer wrote:
>
> > Now I understand that this is because the list of terminated child
> > processes that 'wait -n' currently ignores is only used in the
> > interactive shell.
>
> Do you mean when no arguments are supplied?
Yeah, trying to avoid repeating myself too much.
> It's not. The difference is
> when a job is marked as notified and eligible to be removed from the
> jobs list.
>
> > If you want the behavior of 'wait -n' to be
> > consistent between scripts and the interactive shell, then it should
> > choose one terminated child process from the list of those that is
> > maintained in the interactive shell, if it's nonempty, to report to
> > the user and to clear from that list, any time it is called.
>
> That would make it different from wait without -n.
And that's fine. Why would you consider that a problem?
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/08/07
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/08/07
- Re: 'wait -n' with and without id arguments, Zachary Santer, 2024/08/07
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/08/12
- Re: 'wait -n' with and without id arguments, Zachary Santer, 2024/08/12
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/08/14
- Re: 'wait -n' with and without id arguments, Zachary Santer, 2024/08/15
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/08/21
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/08/21
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/08/12
- Re: 'wait -n' with and without id arguments,
Zachary Santer <=
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/08/14
- Re: 'wait -n' with and without id arguments, Zachary Santer, 2024/08/14
- Re: 'wait -n' with and without id arguments, Zachary Santer, 2024/08/16
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/08/26
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/08/26
- Re: 'wait -n' with and without id arguments, Zachary Santer, 2024/08/30
Message not available
Message not availableRe: 'wait -n' with and without id arguments, Robert Elz, 2024/08/21