This commit is contained in:
Jakub Adamski 2019-01-10 13:17:30 +01:00
parent 4315a84f02
commit 5b566ee326

View File

@ -42,13 +42,12 @@ int main (){
}
printf("[%s]$ ", directory);
fgets(komenda, max, stdin);
cut(argv, komenda);
if (!strcmp(komenda, "exit\n"))
break;
else{
cut(argv, komenda);
else
execvp(argv[0], argv);
}
}
return 0;
}