After finding out what this shopt -s histappend means, it seems a very sane setting, and I'm surprised that it isn't default. Of course I may be shortsighted, so why would anyone not use such a setting? Why would anyone want to wipe their history on each shell exit?
|
|
|||
|
|
|
Well, when 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 and if you don't care about that 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 |
|||