From bash
man page:
On startup, the history is initialized
from the file named by the variable
HISTFILE (default ~/.bash_history)...
When an interactive shell exits, the
last $HISTSIZE lines are copied from
the history list to $HISTFILE. If the
histappend shell option is enabled
(see the description of shopt
under SHELL BUILTIN COMMANDS below),
the lines are appended to the history
file, otherwise the history file is
overwritten...
So, only on exit the file ~/.bash_history
is updated, and if histappend
is set, the default, that file is not overwritten.
My suggestion, remove ~/.bash_history
, then perform history -c
.