This commit is contained in:
Jakub Adamski 2019-01-10 13:23:33 +01:00
parent 5b566ee326
commit 14598253ef
2 changed files with 4 additions and 0 deletions

BIN
Microshell/microshell Executable file

Binary file not shown.

View File

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