From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1732 invoked by alias); 25 Sep 2014 07:10:33 -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: 19145 Received: (qmail 9563 invoked from network); 25 Sep 2014 07:10:20 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Tassilo Horn Subject: Re: ZSH history not saved anymore Date: Thu, 25 Sep 2014 09:10:04 +0200 Message-ID: <8738bg2n1v.fsf@thinkpad-t440p.tsdh.org> References: <87mw9qdp7s.fsf@thinkpad-t440p.tsdh.org> <20140924200710.2f764272@pws-pc.ntlworld.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i59f6bfe9.versanet.de User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:e7/uQibW2Jy9GjLOt5Nubz2hrEA= Peter Stephenson writes: Hi Peter, >> I've just started using enlightenment 19 coming from Gnome. Now my >> terminal emulator is terminology instead of gnome-terminal. >> >> Today, I've noticed that since then my ZSH history file doesn't get >> updated anymore. That is, when terminating the terminal emulator, it >> seems that ZSH has no chance to save the histfile anymore. As a >> workaround I can just quit ZSH before terminating terminology using >> the "exit" command. > > The terminal should send SIGHUP to the shell and give it a chance to > handle it. > > 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. Bye, Tassilo