Shell: Do not assume that stdin/stdout is a TTY

This closes #2989.
This commit is contained in:
AnotherTest 2020-08-05 10:00:01 +04:30 committed by Andreas Kling
commit 7b15c85ff5
Notes: sideshowbarker 2024-07-19 04:15:54 +09:00
3 changed files with 15 additions and 5 deletions

View file

@ -267,7 +267,8 @@ int Shell::builtin_exit(int argc, const char** argv)
}
stop_all_jobs();
save_history();
printf("Good-bye!\n");
if (m_is_interactive)
printf("Good-bye!\n");
exit(exit_code);
return 0;
}