nitter
Hal Pomeranz
@hal_pomeranz
4 Apr 2016
Trivia question - Does bash write to .bash_history any time other than on exit? If so, when?
4
4
SMITTY
@chaumurky
4 Apr 2016
@hal_pomeranz
Any time the process gets a signal other than SIGABRT?
1
Hal Pomeranz
@hal_pomeranz
4 Apr 2016
Replying to
@chaumurky
@chaumurky
I haven't tested that. But assuming the signal doesn't cause the shell to exit, I'm willing to bet not.
Apr 4, 2016 · 7:03 PM UTC
1
SMITTY
@chaumurky
4 Apr 2016
Replying to
@hal_pomeranz
@hal_pomeranz
some old bash source gave me the idea..: "if (interactive_shell && sig != SIGABRT) maybe_save_shell_history ();"
3
1
1
Hal Pomeranz
@hal_pomeranz
4 Apr 2016
@chaumurky
Interesting. I'll add it to the testing list. But not what I was going for.