diff options
author | Ron Yorston <rmy@pobox.com> | 2012-03-23 11:13:23 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-03-23 11:13:23 +0000 |
commit | 40514a0309939f2446f0d4ed9600cad5de396e7f (patch) | |
tree | 0f5f4a57d4bb7893418b5bb11d482858eb17ba8b /shell/ash.c | |
parent | 9db164d6e39050d09f38288c6045cd2a2cbf6d63 (diff) | |
parent | c0cae52662ccced9df19f19ec94238d1b1e3bd71 (diff) | |
download | busybox-w32-40514a0309939f2446f0d4ed9600cad5de396e7f.tar.gz busybox-w32-40514a0309939f2446f0d4ed9600cad5de396e7f.tar.bz2 busybox-w32-40514a0309939f2446f0d4ed9600cad5de396e7f.zip |
Merge commit 'c0cae52662ccced9df19f19ec94238d1b1e3bd71' into merge
Conflicts:
Makefile.flags
scripts/basic/fixdep.c
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index a809bf181..a79099bc5 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -13431,6 +13431,10 @@ exitshell(void) | |||
13431 | char *p; | 13431 | char *p; |
13432 | int status; | 13432 | int status; |
13433 | 13433 | ||
13434 | #if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT | ||
13435 | save_history(line_input_state); | ||
13436 | #endif | ||
13437 | |||
13434 | status = exitstatus; | 13438 | status = exitstatus; |
13435 | TRACE(("pid %d, exitshell(%d)\n", getpid(), status)); | 13439 | TRACE(("pid %d, exitshell(%d)\n", getpid(), status)); |
13436 | if (setjmp(loc.loc)) { | 13440 | if (setjmp(loc.loc)) { |
@@ -13816,7 +13820,7 @@ int ash_main(int argc UNUSED_PARAM, char **argv) | |||
13816 | } | 13820 | } |
13817 | 13821 | ||
13818 | if (sflag || minusc == NULL) { | 13822 | if (sflag || minusc == NULL) { |
13819 | #if defined MAX_HISTORY && MAX_HISTORY > 0 && ENABLE_FEATURE_EDITING_SAVEHISTORY | 13823 | #if MAX_HISTORY > 0 && ENABLE_FEATURE_EDITING_SAVEHISTORY |
13820 | if (iflag) { | 13824 | if (iflag) { |
13821 | const char *hp = lookupvar("HISTFILE"); | 13825 | const char *hp = lookupvar("HISTFILE"); |
13822 | if (hp) | 13826 | if (hp) |