Explorar o código

Shell: Save the history when quitting via the exit builtin

AnotherTest %!s(int64=5) %!d(string=hai) anos
pai
achega
abfcd7b1b8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Shell/Shell.cpp

+ 1 - 0
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;