It says in the docs
When an interactive shell exits, the last $HISTSIZE lines are copied from the history list to the file named by $HISTFILE.
term is login shell not interactive
there is bound to be a way to controll this
history -w
will write out to the file
i bet if you put that in a file ~/.bash_logout
it might change the behaviour
|