p
This commit is contained in:
parent
1c84005dc8
commit
0b875d62fc
@ -43,8 +43,9 @@ int main (){
|
||||
printf("[%s]$ ", directory);
|
||||
fgets(komenda, max, stdin);
|
||||
cut(argv, komenda);
|
||||
|
||||
if (!strcmp(argv[0], "exit"))
|
||||
if (argv[0]==NULL)
|
||||
continue;
|
||||
else if (!strcmp(argv[0], "exit"))
|
||||
break;
|
||||
else
|
||||
execvp(argv[0], argv);
|
||||
|
Loading…
Reference in New Issue
Block a user