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

bugzilla at busybox.net bugzilla at busybox.net
Sun May 17 17:36:33 UTC 2009


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


Lucas Maneos <busybox at subs.maneos.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #335 is|0                           |1
           obsolete|                            |




--- Comment #20 from Lucas Maneos <busybox at subs.maneos.org>  2009-05-17 17:36:32 UTC ---
Created an attachment (id=337)
 --> (https://bugs.busybox.net/attachment.cgi?id=337)
patch against 1.14.0 ash to load/save history only at start/exit time

(In reply to comment #19)
> This should go into libbb.h, not ash.c.

Good point, updated patch uploaded.

> Ideally, ash should not know/care how history saving works. It just sets
> history file name and SAVE_HISTORY bit in ->flags.

I agree it looks a bit unclean.  However if ash is to save its history when it
exits and FEATURE_EDITING_SAVEHISTORY functions live in libbb, ash needs to
call some libbb function and pass it its own line_input_t (read_line_input()
clears its reference to it in every incovation) so it might as well be
save_history().  At least I can't think of any alternative that doesn't amount
to the same thing.


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