diff options
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index bf376bd0d..14472cb61 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -12888,6 +12888,10 @@ exitshell(void) | |||
12888 | char *p; | 12888 | char *p; |
12889 | int status; | 12889 | int status; |
12890 | 12890 | ||
12891 | #if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT | ||
12892 | save_history(line_input_state); | ||
12893 | #endif | ||
12894 | |||
12891 | status = exitstatus; | 12895 | status = exitstatus; |
12892 | TRACE(("pid %d, exitshell(%d)\n", getpid(), status)); | 12896 | TRACE(("pid %d, exitshell(%d)\n", getpid(), status)); |
12893 | if (setjmp(loc.loc)) { | 12897 | if (setjmp(loc.loc)) { |