Trivia question - Does bash write to .bash_history any time other than on exit? If so, when?
4
4
@hal_pomeranz Any time the process gets a signal other than SIGABRT?
1
@chaumurky I haven't tested that. But assuming the signal doesn't cause the shell to exit, I'm willing to bet not.
1
@hal_pomeranz some old bash source gave me the idea..: "if (interactive_shell && sig != SIGABRT) maybe_save_shell_history ();"
3
1
1
Replying to @chaumurky
@chaumurky Using bash 4.3.11 on Linux Mint 17.1 (Rebecca)

Apr 5, 2016 · 2:24 PM UTC

1