From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21334 invoked by alias); 26 Sep 2014 07:04:35 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19154 Received: (qmail 24060 invoked from network); 26 Sep 2014 07:04:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140926000448.ZM30835@torch.brasslantern.com> Date: Fri, 26 Sep 2014 00:04:48 -0700 In-reply-to: <8738bg2n1v.fsf@thinkpad-t440p.tsdh.org> Comments: In reply to Tassilo Horn "Re: ZSH history not saved anymore" (Sep 25, 9:10am) References: <87mw9qdp7s.fsf@thinkpad-t440p.tsdh.org> <20140924200710.2f764272@pws-pc.ntlworld.com> <8738bg2n1v.fsf@thinkpad-t440p.tsdh.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: ZSH history not saved anymore MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Sep 25, 9:10am, Tassilo Horn wrote: } } > If you do } > } > TRAPHUP() { } > print "Exiting on signal" >~/zsh_exited } > exit } > } } > } > do you see the message being written to the file ~/zsh_exited? } } Nope, there's no such file after terminating the terminal emulator, so a } missing SIGHUP is probably the problem. Sending it to the ZSH process } using kill -SIGHUP works. Thanks for your help in clearing that up. That still seems a little strange. If zsh doesn't get HUP, then it should get EOF and write the history at that point. Something may be killing it off (with a signal stronger than HUP) before it has a chance to finish writing.