18
7
I like to keep a lot of history, so I have histappend
set in my .bashrc
. Most of the time everything works fine, with history built up from many shells appending. However, every once and a while, I'll start a new shell and find that I've lost the entire history - and it often only contains some of the commands from the last shell to exit (i.e. it's not just overwriting instead of appending). Because of this, I'm suspicious it's happening at shell exit, rather than from some other process killing the .bash_history
file. Supporting this conclusion, I have history command numbers in my prompt, and I've never seen them jump down.
Anyone ever run into a similar problem? Or even just have suggestions how to track down the problem?
1
See: patch #8676: Fix truncating .bash_history
– kenorb – 2015-05-28T10:35:36.363