From 1c84005dc8e6364cacd7734ebfc60924813fb652 Mon Sep 17 00:00:00 2001 From: Jakub Adamski Date: Thu, 10 Jan 2019 13:55:46 +0100 Subject: [PATCH] com --- Microshell/microshell.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Microshell/microshell.c b/Microshell/microshell.c index faeec0d..a1790d5 100644 --- a/Microshell/microshell.c +++ b/Microshell/microshell.c @@ -43,12 +43,8 @@ int main (){ printf("[%s]$ ", directory); fgets(komenda, max, stdin); cut(argv, komenda); - if (komenda[0] == 10){ - printf("\n"); - continue; - } - if (!strcmp(komenda, "exit\n")) + if (!strcmp(argv[0], "exit")) break; else execvp(argv[0], argv);