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)