After some experimentation, it makes a file impossible to delete.
Very clever, +1.
Very clever, +1.
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.
histappend
If set, the history list is appended to the file named
by the value of the HISTFILE variable when the shell
exits, rather than overwriting the file.> The bash session that is saved is the one for the terminal that is closed the latest.