Som kind of shell - act

This commit is contained in:
2022-08-24 16:24:57 +02:00
parent 86956ff1ce
commit 57890907ae
7 changed files with 69 additions and 200 deletions

View File

@ -367,9 +367,16 @@ main(int argc , char *argv[])
}
} else if (el_parse(el, ac, av) == -1) {
char str[2000];
int i;
char * sp ="";
str[0]=0;
fprintf(act_f,"%s\n",av[0]);
for (i=0; i<ac; i++){
fprintf(act_f,"%s%s",sp,av[i]);
sp=" ";
}
fprintf(act_f,"\n");
fflush(act_f);
do {
int n;