This commit is contained in:
Jakub Adamski 2019-01-10 14:28:20 +01:00
parent a8477db92b
commit aa11037bfc

View File

@ -29,7 +29,6 @@ void cut(char **argv, char *command){
argument[x] = '\0';
argv[w]=malloc(x+1 * sizeof(char));
strcpy(argv[w], argument);
printf("\n%s\n", argv[w]);
w+=1;
}
}
@ -48,7 +47,7 @@ int main (){
cut(argv, komenda);
if (argv[0]==NULL)
continue;
else if (!strcmp(argv[0], "exit"))
else if (strcmp(argv[0], "exit") == 0)
break;
else
if (fork() == 0)