From: Bart Schaefer <schaefer@brasslantern.com>
To: Jun T <takimoto-j@kba.biglobe.ne.jp>
Cc: zsh-workers@zsh.org
Subject: Re: [PATCH] problem with 'ls | less' shell function
Date: Mon, 7 Nov 2022 16:44:03 -0800 [thread overview]
Message-ID: <CAH+w=7YzAzEkPqK1bwd3HjeCVgBZj185JEJSRR5NDiwaGn9pQw@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7Z-6akgCf=eN72YPp038r3APpLOkTV=zwzhKqRJgP=fHA@mail.gmail.com>
On Mon, Nov 7, 2022 at 11:33 AM Bart Schaefer <schaefer@brasslantern.com> 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.
next prev parent reply other threads:[~2022-11-08 0:44 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-17 9:17 Thomas Klausner
2022-10-17 14:50 ` Mikael Magnusson
2022-10-17 15:36 ` Thomas Klausner
2022-10-19 8:26 ` zsugabubus
2022-10-19 10:04 ` Jun T
2022-10-19 13:36 ` Jun. T
2022-10-20 0:10 ` Bart Schaefer
2022-10-20 16:26 ` Peter Stephenson
2022-10-21 5:45 ` Jun T
2022-10-21 7:40 ` Jun T
2022-10-21 21:22 ` Bart Schaefer
2022-10-21 21:24 ` Bart Schaefer
2022-10-22 23:22 ` Bart Schaefer
2022-10-22 23:43 ` Bart Schaefer
2022-11-03 23:10 ` Bart Schaefer
2022-11-04 6:09 ` [PATCH] " Bart Schaefer
2022-11-04 15:10 ` [PATCH] " Jun T
2022-11-05 0:09 ` Bart Schaefer
2022-11-06 19:12 ` Bart Schaefer
2022-11-07 8:43 ` Jun T
2022-11-07 19:33 ` Bart Schaefer
2022-11-07 19:44 ` Roman Perepelitsa
2022-11-08 0:46 ` Bart Schaefer
2022-11-08 0:44 ` Bart Schaefer [this message]
2022-11-08 5:03 ` Bart Schaefer
2022-11-09 5:03 ` Bart Schaefer
2022-10-19 9:33 ` Jun T
2022-10-19 10:01 ` Jun T
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7YzAzEkPqK1bwd3HjeCVgBZj185JEJSRR5NDiwaGn9pQw@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=takimoto-j@kba.biglobe.ne.jp \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).