[Bug 149] New: shell history file is overwritten after every command
bugzilla at busybox.net
bugzilla at busybox.net
Thu Mar 5 12:49:11 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=149
Summary: shell history file is overwritten after every command
Product: Busybox
Version: unspecified
Platform: PC
URL: https://bugs.maemo.org/show_bug.cgi?id=4174
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at busybox.net
ReportedBy: a9016009 at gmx.de
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
Forwarding from https://bugs.maemo.org/show_bug.cgi?id=4174 .
VERSION: 1.10.2
STEPS TO REPRODUCE THE PROBLEM:
1. Establish a shell session (osso-xterm or ssh, user or root, doesn't matter).
2. Run "ls -l .ash_history" repeatedly.
EXPECTED OUTCOME:
History file is only updated when shell exits.
ACTUAL OUTCOME:
History file is re-written after every command entered
(libbb/linedit.c:remember_in_history). This is causing unnecessary wear on the
flash and wastes a bit of power. There are also side-effects with the way
loading the history is handled (will post another bug shortly).
REPRODUCIBILITY:
Always.
OTHER COMMENTS:
There's no way to disable history saving as in most shells by setting an
environment variable, and unsetting HISTFILE doesn't change anything.
The logic of when to save/load still seems the same currently in both trunk
(r23938) and the busybox_1_13_stable branch (r24175).
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list