<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 16 February 2015 at 01:34, Alexander Ploumistos <span dir="ltr">&lt;<a href="mailto:alex.ploumistos@gmail.com" target="_blank">alex.ploumistos@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
<br>
I have upgraded 3 systems to a nonproduct F21 and I have installed F21<br>
to a couple of others using the x86_64 Live Workstation image. They<br>
all suffer from intermittent losses of bash history. When the machines<br>
are booted or rebooted, more than half the times, there are commands<br>
missing from .bash_history files. It&#39;s not only that the previous<br>
sessions have not been appended to the files, entire portions of the<br>
files are wiped on occasion, e.g. history files that were more than<br>
2000 lines long are now reduced to just a couple of commands.<br>
<br>
There was a bug filed against systemd during F21 testing (#1170765),<br>
where I followed up, but I have no idea if systemd really is to blame<br>
or if there is something else that could be touching history files. I<br>
have read the release notes as well as the system administrator&#39;s<br>
guide, but couldn&#39;t find anything relevant. Does anyone have any idea<br>
what might be off here? Which system components are involved in<br>
terminal history management?<br>
<br></blockquote><div><br></div><div>Could you see if either of these are set?</div><div><br></div><div><div>#export HISTCONTROL=ignoredups:erasedups</div><div>#export HISTTIMEFORMAT=&quot;%h %d %H:%M:%S&gt; &quot;</div></div><div><br></div><div>I started seeing this in RHEL-6 bash after I took this from one of my fedora boxes to get a common bashrc </div><div><br></div><div>I commented them out and the problem with bash losing history every now and then went away. I figured that one of the control items was not ready for primetime and forgot to follow up furhter.</div><div><br></div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Stephen J Smoogen.<br><br></div></div>
</div></div>