diff --git a/Microshell/microshell.c b/Microshell/microshell.c index 8a9c9e9..0f01808 100644 --- a/Microshell/microshell.c +++ b/Microshell/microshell.c @@ -49,12 +49,9 @@ int main (){ break; else if (fork() == 0){ - ptintf("/n"); + printf("/n"); execvp(argv[0], argv); - } - else{ - wait(NULL); - printf("koniec komendy"); + exit(0); } } return 0;