Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Crash on jobstates since workers/49783 (commit 6a8aa2a)



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