After finding out what this
shopt -s histappend means, it seems a very sane setting, and I'm surprised that it isn't default. Why would anyone want to wipe their history on each shell exit?
For example, if the histfile contains 400 entries, during bash runtime 10 new entries are added - histsize is set to 500, then the new histfile contains 410 entries.
This behavior is only problematic if you use more bash instances in parallel. In that case, the history file only contains the contents of the last exiting shell.
Independent of this: There are some people who want to wipe their history on shell exit because of privacy reasons.
For historical compatibility, I guess. The