You are not logged in.
Rebooted shortly after updating bash, this morning. After the reboot, the bash history of both user accounts (root and my account) was wiped, and nothing's being written to the history files, despite having "shopt -s histappend" in /etc/bash.bashrc.
Is anyone else seeing something like this?
Offline
My ~/.bash_history is still there. I'm using 'shopt -s histappend' too.
What's the output of 'ls -l ~/.bash_history'?
Offline
My ~/.bash_history is still there. I'm using 'shopt -s histappend' too.
What's the output of 'ls -l ~/.bash_history'?
Ok. Have now rebooted a few times. Initially, `ls -l ~/.bash_history` showed
-rw------- 1 klevin users 0 Mar 18 10:32:00 .bash_historyThe time corresponded to the first reboot after updating bash.
Exiting an active shell resulted in .bash_history being written to (indicating that the histappend setting is not being processed or is getting overridden somewhere now).
However, a subsequent reboot resulted in .bash_history suddenly having the contents of a different shell, from earlier in the day (not one that had been running during the immediately preceding uptime). This seems like some sort of fs corruption/ext4 journal gone wrong. I did also switch from a 3.13.0-1-00038-gb0031f2 (git) kernel to the 3.13.6-1-ARCH kernel, so maybe something went wacky there. Still have to figure out why histappend is being ignored.
Offline
@baronmog, how things went up?
Since last week am encoutering the same behaviour with the root user only:
-rw------- 1 root root 0 12 avril 19:18 /root/.bash_historyStayed empty so far.
Bash 4.3.008-2 (updated from 4.3-3 but issue stayed)
I'm using 'shopt -s histappend' too from /etc/bash.bashrc.
Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery
) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9
Offline
Same here. .bash_history is empty.
$ ls -l ~/.bash_history
-rw-r--r-- 1 myusername users 0 21. Apr 02:44 /home/myusername/.bash_history
The time is corresponding with the last shutdown.
Offline
@baronmog, how things went up?
Seems to be working ok lately. I have nothing to support this, but I wonder if it was related to the different kernel versions I was bouncing between at the time (one of which was a build from git sources).
Offline
Seems to be working ok lately. I have nothing to support this, but I wonder if it was related to the different kernel versions I was bouncing between at the time (one of which was a build from git sources).
Heh. Open my big mouth. Booted up this morning, and my user account's bash history is empty. Not root's though. Still running the same kernel as yesterday, so that's not it (didn't really think it was, anyway).
Offline
Problem persists here too. Started my system today and .bash_history had a size of 0 with the last change date of the shutdown yesterday. This is very annoying.
Is there a bugreport filed?
Offline
Updated yesterday (2.1-4 -> 2.1-5) and .bash_history was wiped on next boot. It was* a symlink to a file on another volume. I thought that may have had something to do with it until I remembered this thread. I also have some settings exported in .bashrc:
export HISTCONTROL='ignoreboth:erasedups'
export HISTIGNORE="&:cd:exit:startx:off:rere"Root's history is intact, but it's a normal file in the default location and hasn't been touched in over a month.
* Was because I've since moved to the proper solution of exporting HISTFILE.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline