Trivia question - Does bash write to .bash_history any time other than on exit? If so, when?

Apr 4, 2016 · 5:32 PM UTC

4
4
Replying to @hal_pomeranz
@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
Replying to @hal_pomeranz
@hal_pomeranz - I looked up how to make the shell append. Is that what you're asking about? Or, a condition forcing writing to it?
1
@CCrowMontance Shell append still happens on exit only
1
Replying to @hal_pomeranz
@hal_pomeranz methinks history -a will do it
This tweet is unavailable
@bilborg Without explicitly running a command to update history...
1