Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: SIGPIPE (Re: ZSH history not saved anymore)
- X-seq: zsh-workers 33258
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: SIGPIPE (Re: ZSH history not saved anymore)
- Date: Sat, 27 Sep 2014 21:40:35 +0100
- In-reply-to: <140927105301.ZM31550@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <87mw9qdp7s.fsf@thinkpad-t440p.tsdh.org> <20140924200710.2f764272@pws-pc.ntlworld.com> <8738bg2n1v.fsf@thinkpad-t440p.tsdh.org> <140926000448.ZM30835@torch.brasslantern.com> <878ul6lrw9.fsf@thinkpad-t440p.tsdh.org> <CABx2=D9xdeJ0qDNayUG0astemFEtK13SLpA3j8UQT5EqHW_PmA@mail.gmail.com> <87y4t66td0.fsf@thinkpad-t440p.tsdh.org> <CABx2=D-chwqBDZLTk8OqeUDqxvnYUQFFKWbiw7h3ZgUGtSb_CQ@mail.gmail.com> <871tqxqyil.fsf@thinkpad-t440p.tsdh.org> <140927105301.ZM31550@torch.brasslantern.com>
On Sat, 27 Sep 2014 10:53:01 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> I'm a bit hesitant to change this after all these years, but perhaps an
> interactive shell should exit on SIGPIPE if the terminal is not still open?
It's hard to see how can that be wrong if we exit on EOF on the terminal.
> I'm probably missing something having to do with subshells receiving the
> PIPE signal. There are regrettably many code paths covering all the ways
> an interactive shell might fork.
I don't know what it is that stops it running zexit() and having the
same effect in a subshell, hence writing out history incorrectly, if
that's what you mean, but you may be thinking of something more subtle.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author