- fix bug
This commit is contained in:
parent
0470086254
commit
287fe5df13
1 changed files with 4 additions and 2 deletions
|
@ -42,13 +42,15 @@ int main(int argc, char** argv)
|
|||
{
|
||||
char* command = malloc(1024*sizeof(char));
|
||||
|
||||
int size, status = 0;
|
||||
int size = 0, status = 0;
|
||||
pid_t pid;
|
||||
system("clear");
|
||||
showlogo();
|
||||
while(1) {
|
||||
printf("$ ");
|
||||
size = scanf("%s", command);
|
||||
do {
|
||||
size = scanf("%s", command);
|
||||
} while(size <= 0);
|
||||
if(!strcmp(command, "exit")) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue