dish/loop.c
2022-09-18 13:14:54 +08:00

20 lines
No EOL
308 B
C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "line.h"
#include "loop.h"
#include "exec.h"
int loop() {
char *line;
char **args;
int status = 1;
printf("> ");
line = readLine();
args = splitLine(line);
status = forkExec(args);
free(line);
free(args);
return 0;
}