by sdjf » Fri Apr 25, 2014 10:29 pm
If you change to a different subshell, the current bash history will be that one I think. I think it is less likely to be a matter of an unclean shutdown (unless you did not sync before rebooting) than of your being in a subshell whose history went away when you exited it.
One thing I have added to my bashrc files (I don't recall which offhand, might be the one that exits bash) is a routine that copies the old history to a .bak file and saves two prior histories automatically, so if my Pi crashes, I can manually restore an older bash_history.