Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Expected behavior of background jobs in ${ ... }
- X-seq: zsh-workers 52200
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Expected behavior of background jobs in ${ ... }
- Date: Mon, 2 Oct 2023 20:26:27 -0700
- Archived-at: <https://zsh.org/workers/52200>
- In-reply-to: <CAH+w=7aSVN5wx7qnjGxOyLRUjNODg_Hv6fPRZu1tgMKoD-+vFQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7aSVN5wx7qnjGxOyLRUjNODg_Hv6fPRZu1tgMKoD-+vFQ@mail.gmail.com>
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