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