Use the following command to force Bash to save command history:
history -w
Notify me of follow-up comments via email.