This commit is contained in:
Jakub Adamski 2019-01-10 13:55:46 +01:00
parent 14598253ef
commit 1c84005dc8

View File

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