diff --git a/Microshell/microshell.c b/Microshell/microshell.c index 9ee58ed..226da06 100644 --- a/Microshell/microshell.c +++ b/Microshell/microshell.c @@ -48,7 +48,8 @@ int main (){ else if (!strcmp(argv[0], "exit")) break; else - execvp(argv[0], argv); + if (fork() == 0) + execvp(argv[0], argv); } return 0; }