[Bug 185] Add an option not to reload command line history with ash shell

bugzilla at busybox.net bugzilla at busybox.net
Fri Mar 27 00:35:37 UTC 2009


--- Comment #7 from Lucas Maneos <busybox at subs.maneos.org>  2009-03-27 00:35:36 UTC ---
Created an attachment (id=193)
 --> (https://bugs.busybox.net/attachment.cgi?id=193)
patch against 1.13.3 ash to load/save history only at start/exit time

You are absolutely correct.  There's no official specification regarding
this[1], but it would be reasonable to expect more bash-like behaviour.

The other half of the story is that currently history is saved after every
interactive command or subshell, which is a bit undesirable when the filesystem
is on flash memory (eg maemo or openmoko).

The attached patch loads the history when the shell starts, keeps track of
history lines that are new to this ash session, and when the shell exits merges
these with the on-disk history.

Comments welcome.

[1]  http://www.opengroup.org/onlinepubs/9699919799/utilities/sh.html : "If
more than one instance of the shell is using the same history file, it is
unspecified how updates to the history file from those shells interact"

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