From c21e2fb7f6d61936387a0286b3273d58b73363db Mon Sep 17 00:00:00 2001 From: Samantha Boyer Date: Sat, 22 Oct 2022 21:16:24 -0500 Subject: [PATCH] Added parsing to Pish() --- src/Pish.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Pish.c b/src/Pish.c index 9241d98..e2cb4d1 100644 --- a/src/Pish.c +++ b/src/Pish.c @@ -32,7 +32,16 @@ void Pish(void) while (1) { command = getInput(); - IntegratedCheck(command); + //Parse command + char* token = strtok(command, " "); + while(token != NULL) + { + //This only holds 1 command at a time then it overrides + //Will need modified + token = strtok(NULL, " "); + } + + IntegratedCheck(command); retval = fork(); // Child if (retval == 0)