Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh spins in endless loop with SIGHUP + read in zshexit
- X-seq: zsh-workers 48825
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Zsh spins in endless loop with SIGHUP + read in zshexit
- Date: Fri, 14 May 2021 21:43:32 +0100
- Archived-at: <https://zsh.org/workers/48825>
- In-reply-to: <CAH+w=7YAWQEA43S6GLNff90TWkac6eDqA5GvAGRtC0J5dQJX1Q@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20210513101751.j5vo2dbrd5uzwju4@jo-so.de> <CAH+w=7ZUJ_WMjJzx-fcwEVigji-nkLfRRdoWGgS8rpwiXck7Eg@mail.gmail.com> <119769213.82300.1620922030356@mail2.virginmedia.com> <CAH+w=7ZY5ePBzSOUboo_65ArUbz1B9tApJDQGoFCQ97wwZ3zQg@mail.gmail.com> <0890fd16e2f7d0a8d40f621022ad541ab1c1a9ee.camel@ntlworld.com> <CAH+w=7aHn-fyZc+Z6oP=2KqCVnxe4Av-mrhjG1MM9RD27Yy-Yw@mail.gmail.com> <979701293.98679.1620986176059@mail2.virginmedia.com> <CAH+w=7YAWQEA43S6GLNff90TWkac6eDqA5GvAGRtC0J5dQJX1Q@mail.gmail.com>
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@xxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author