history doubling in root shell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-files (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: base-files
I noticed that commands that are executed more than once in a root shell also appear more than once when using the arrow keys. That is clearly not desired behaviour. The default /root/.bashrc says this:
# don't put duplicate lines in the history. See bash(1) for more options
#export HISTCONTROL=
The bash skeleton in /etc/skel/.bashrc says:
# don't put duplicate lines in the history. See bash(1) for more options
# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
export HISTCONTROL=
# ... or force ignoredups and ignorespace
export HISTCONTROL=
This seems better. Googling around I found out that /root/.bashrc is copied from /usr/share/
skeleton files”, where the export statement is commented out:
So maybe the “sync” step needs to be repeated. Related: bug 228747
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: base-files 5ubuntu4
ProcEnviron:
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: base-files
Uname: Linux 2.6.30-