From 5169a743e78d6b53e8e40e3a23622907d44d0a1d Mon Sep 17 00:00:00 2001 From: Skylar Date: Tue, 29 Mar 2022 04:14:21 +1300 Subject: [PATCH] added control for EOF to input --- ash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ash.c b/ash.c index 740bf7c..2033cca 100644 --- a/ash.c +++ b/ash.c @@ -28,6 +28,7 @@ char *readLine(void) if (fullLine[0] == '\0') { + exit(0); printf("ash> "); continue; }