bash history is not getting saved

Bug #1005601 reported by prasad on 2012-05-28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
bash (Ubuntu)

Bug Description

opena a terminal and execute some commands nothing gets saved into bash history.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash 4.2-2ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic-pae 3.2.16
Uname: Linux 3.2.0-24-generic-pae i686
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
Date: Mon May 28 22:43:17 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
 PATH=(custom, no user)
SourcePackage: bash
UpgradeStatus: No upgrade log present (probably fresh install)

prasad (gpvprasad-yahoo) wrote :
tomazzi (tomazzi-wp) wrote :

True, bash is not saving the history.
Ubutu 12.04 LTS i386, up to date.
.bashrc is correct and checking HIST... variables within the terminal trough echo $HIST... gives correct results.

Workaround that worked for me: delete .bash_history.
File will be re-created on next terminal closing.

Apparently bash_history is damaged after fresh install of the system.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bash (Ubuntu):
status: New → Confirmed
Tom Rini (tom-rini) wrote :

This is likely user error as the .bash_history file inadvertantly ended up being owned by another user (likely root).

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers