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

Re: Expected behavior of background jobs in ${ ... }



On Mon, Oct 2, 2023 at 5:48 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> echo ${ { echo foo; } & { echo bar; } & echo done; }
>
> Here ksh also discards the output of the background jobs and
> substitutes only "done", but that may be an order of operations thing.

Yep:

$ echo ${ { echo foo; } & { echo bar; } & sleep 3; echo done; }
[1]    293173
[2]    293174
foo bar done




Messages sorted by: Reverse Date, Date, Thread, Author