Skip to content

Commit

Permalink
added control for EOF to input
Browse files Browse the repository at this point in the history
  • Loading branch information
Biscuitmunch committed Mar 28, 2022
1 parent ebb736f commit 5169a74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ash.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ char *readLine(void)

if (fullLine[0] == '\0')
{
exit(0);
printf("ash> ");
continue;
}
Expand Down

0 comments on commit 5169a74

Please sign in to comment.