From 4f081c462785d7badf8e0d61f01f4567c812cc39 Mon Sep 17 00:00:00 2001 From: Jakub Adamski Date: Thu, 10 Jan 2019 15:02:22 +0100 Subject: [PATCH] eh --- Microshell/microshell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Microshell/microshell.c b/Microshell/microshell.c index 1d733a3..8177694 100644 --- a/Microshell/microshell.c +++ b/Microshell/microshell.c @@ -49,7 +49,7 @@ int main (){ ile = cut(argv, komenda); if (argv[0]==NULL) continue; - else if (!strncmp(argv[0], "exit", 4)) + else if (argv[0][0]=='e' && argv[1]=='x' && argv[2]=='i') break; else if (fork() == 0)