Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Crash on jobstates since workers/49783 (commit 6a8aa2a)
- X-seq: zsh-workers 49902
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Crash on jobstates since workers/49783 (commit 6a8aa2a)
- Date: Mon, 28 Mar 2022 08:13:47 -0700
- Archived-at: <https://zsh.org/workers/49902>
- In-reply-to: <1409134730.698961.1648457237653@mail2.virginmedia.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7ZFV8t756mbOa2agfy_RK9WOF9vk+tsRt+Fgy+sd4_+7Q@mail.gmail.com> <CAH+w=7YyuhyAkCyRE9=f-ybLpPzMqfND=y1S=Ai_jS97Sq6J-g@mail.gmail.com> <1409134730.698961.1648457237653@mail2.virginmedia.com>
On Mon, Mar 28, 2022 at 1:47 AM Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
>
> The code now reports "wait: can't manipulate jobs in subshell",
> which I believe is a correct statement of affairs.
Well, no, it's not, or at least not entirely.
% ret27() { sleep 5; return 27 }
% ( ret27 & wait $!; print $? )
27
A subhell can spawn and wait for processes, it just can't move them
between background and foreground.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author