From b8a86e7456ec8683f6fc50843af1ddad96675555 Mon Sep 17 00:00:00 2001 From: Jakub Adamski Date: Thu, 10 Jan 2019 14:19:31 +0100 Subject: [PATCH] ent --- Microshell/microshell.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Microshell/microshell.c b/Microshell/microshell.c index edeeb2d..748e07b 100644 --- a/Microshell/microshell.c +++ b/Microshell/microshell.c @@ -50,10 +50,8 @@ int main (){ else if (!strcmp(argv[0], "exit")) break; else - if (fork() == 0){ - printf("\n"); + if (fork() == 0) execvp(argv[0], argv); - } else wait(NULL); }