.bash_history in F15/16 randomly truncated/incomplete/damaged

Reindl Harald h.reindl at thelounge.net
Wed Mar 28 13:51:27 UTC 2012



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




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120328/f3b7f073/attachment.sig>


More information about the users mailing list