* Re: Zsh spins in endless loop with SIGHUP + read in zshexit
[not found] ` <CAH+w=7YAWQEA43S6GLNff90TWkac6eDqA5GvAGRtC0J5dQJX1Q@mail.gmail.com>
@ 2021-05-14 20:43 ` Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2021-05-14 20:43 UTC (permalink / raw)
To: Zsh hackers list
On Fri, 2021-05-14 at 11:51 -0700, Bart Schaefer wrote:
> On Fri, May 14, 2021 at 2:56 AM Peter Stephenson
> <p.w.stephenson@ntlworld.com> wrote:
> >
> > > 3a) in a shell function (ZEXIT_DEFERRED)
> >
> > Focussing on this one, I tried
> >
> > TRAPEXIT() { while true; do exit; done; }
> >
> > and sure enough the shell is looping forever if I kill the terminal.
>
> Of course there's nothing preventing someone from writing an infinite
> loop in zshexit or TRAPEXIT, but it's reasonable to expect that exit
> does stop a loop.
>
> Are you going to commit your patch from users/26742 or shall I sweep
> it up along with mine?
Feel free to grab if you're committing.
> Meanwhile we should probably move this thread to -workers. I hadn't
> noticed it was on -users until just now.
Yes.
pws
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-14 20:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20210513101751.j5vo2dbrd5uzwju4@jo-so.de>
[not found] ` <CAH+w=7ZUJ_WMjJzx-fcwEVigji-nkLfRRdoWGgS8rpwiXck7Eg@mail.gmail.com>
[not found] ` <119769213.82300.1620922030356@mail2.virginmedia.com>
[not found] ` <CAH+w=7ZY5ePBzSOUboo_65ArUbz1B9tApJDQGoFCQ97wwZ3zQg@mail.gmail.com>
[not found] ` <0890fd16e2f7d0a8d40f621022ad541ab1c1a9ee.camel@ntlworld.com>
[not found] ` <CAH+w=7aHn-fyZc+Z6oP=2KqCVnxe4Av-mrhjG1MM9RD27Yy-Yw@mail.gmail.com>
[not found] ` <979701293.98679.1620986176059@mail2.virginmedia.com>
[not found] ` <CAH+w=7YAWQEA43S6GLNff90TWkac6eDqA5GvAGRtC0J5dQJX1Q@mail.gmail.com>
2021-05-14 20:43 ` Zsh spins in endless loop with SIGHUP + read in zshexit Peter Stephenson
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).