Browse Source

Shell: Save the history when quitting via the exit builtin

AnotherTest 5 years ago
parent
commit
abfcd7b1b8
1 changed files with 1 additions and 0 deletions
  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();
     stop_all_jobs();
+    save_history();
     printf("Good-bye!\n");
     printf("Good-bye!\n");
     exit(0);
     exit(0);
     return 0;
     return 0;