fixing ctrl+d error

This commit is contained in:
Pin
2024-04-12 22:57:35 -04:00
parent f01bc708f2
commit c03ee8a9b6

View File

@@ -15,6 +15,11 @@ int main() {
do {
cmd = read_input();
// CTRL+D will set cmd to null
// Shell should exit if encountered
if (cmd == NULL) {
exit(EXIT_FAILURE);
}
args = split_cmd(cmd);
status_return = reverse_execute(args);