1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 23:18:10 +00:00

Shell: Save the history when quitting via the exit builtin

This commit is contained in:
AnotherTest 2020-05-27 00:05:08 +04:30 committed by Andreas Kling
parent ce61cad933
commit abfcd7b1b8

View file

@ -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;