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

bugzilla at busybox.net bugzilla at busybox.net
Sun Mar 22 18:56:04 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=185





--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com>  2009-03-22 18:56:03 UTC ---
Created an attachment (id=179)
 --> (https://bugs.busybox.net/attachment.cgi?id=179)
Patch: make history saving/loading concurrent-safe

Please try this patch.

It makes the following changes:
* all history writes always append (not overwrite) history files
* they reload history if they detect that file length has changed since last
write
* they trim history file only when it grows 4 times longer thna MAXLINES
* they do this atomically by creating new file and renaming it to old.


-- 
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