Am 28.03.2012 15:48, schrieb suvayu ali:
FWIW, I did the same test on a VM running F16. After restarting, this was the last thing in my .bash_history file....
echo "4 Test" ; sudo shutdown -P now
So, it isn't clear to me that it is a consistent problem. Maybe a race condition?
Actually now that you mention, I think that might be possible. When I did the test I forgot I also run guake (a quake like drop down terminal). So the history from my test could easily have been overwritten by that. When I have the time I will try to repeat the test in a cleaner environment (creating a new user and all that ...)
usually bash writes down .bash_history on close try it out with "cat ~/.bash_history" and you will not see the entries of your current session!
so if you have more than one bash-instance open all of them writing down their history and the last one wins