Red Hat Bugzilla – Bug 815810
[RFE] history of bash is lost running multiple instances in parallel
Last modified: 2012-07-13 07:01:27 EDT
add "shopt -s histappend" to /etc/bashrc to avoid it.
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.
Thanks for the suggestion. I'm just thinking why it was not added there earlier. Only thing I can think about is the potential privacy reason - and for root user potentially maybe even security reasons. Maybe it would be better to add it into /etc/skel/.bashrc - so it will get active for common users, but will be not used for the root.
Adding bash maintainer to CC, Roman, what do you think about this RFC?
I have nothing against it. I'm not sure about any privacy nor security reasons.
also "history -a" is needed in bashrc.
Done in setup-2.8.56-1.fc18, closing RAWHIDE.