From abfcd7b1b83fae4151fc8b255bbb3e2cad989069 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Wed, 27 May 2020 00:05:08 +0430 Subject: [PATCH] Shell: Save the history when quitting via the exit builtin --- Shell/Shell.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp index 3ab914d450..27f551a855 100644 --- a/Shell/Shell.cpp +++ b/Shell/Shell.cpp @@ -345,6 +345,7 @@ int Shell::builtin_exit(int, const char**) } } stop_all_jobs(); + save_history(); printf("Good-bye!\n"); exit(0); return 0;