Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ZSH history not saved anymore



Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:

Hi Bart,

> } > 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.

I've tried defining trap functions for HUP, TERM, EXIT, KILL, and ABRT,
none of which seem to be executed when closing the terminal emulator.

Any idea how to debug that further?

Bye,
Tassilo



Messages sorted by: Reverse Date, Date, Thread, Author