瀏覽代碼

Shell: Save the history when quitting via the exit builtin

AnotherTest 5 年之前
父節點
當前提交
abfcd7b1b8
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;