com
This commit is contained in:
parent
14598253ef
commit
1c84005dc8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user