Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] problem with 'ls | less' shell function
On Mon, Nov 7, 2022 at 11:33 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> > [2] { sleep 10; sleep 11; } | { sleep 20; sleep 21; }
[...]
> Hmm. If I examine "pstree" I find:
>
> zsh(43919)---zsh(43978)---sleep(43980)
>
> 43978 is your "zsh2" and is busy-waiting with 100% CPU at
OK, this just gets weirder. There are different results depending on
whether you hit ^Z during the first "sleep 10", during the second
"sleep 11", or during "sleep 21". There are also different results if
you change it to
{ sleep 5; sleep 6; } | { sleep 20; sleep 21; }
and hit ^Z during "sleep 20". So some of what I said in workers/50901
doesn't always apply, though the location of the busy-loop is always
the same.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author