187 |
|
putchar('\n'); |
188 |
|
while ((c = getc(fin)) != EOF && c != '\n') |
189 |
|
putchar(c); |
190 |
< |
printf(" |"); |
191 |
< |
for (c = 0; c < xac; c++) |
190 |
> |
printf(" | %s -e", xav[0]); |
191 |
> |
for (c = 1; c < xac; c++) |
192 |
|
printf(" %s", xav[c]); |
193 |
|
putchar('\n'); |
194 |
|
} |
208 |
|
FILE *pin; |
209 |
|
char buf[512]; |
210 |
|
|
211 |
– |
buf[0] = '\0'; |
211 |
|
fgets(buf, sizeof(buf), fin); |
212 |
< |
if (buf[0] && buf[strlen(buf)-1] == '\n') |
212 |
> |
if (buf[strlen(buf)-1] == '\n') |
213 |
|
buf[strlen(buf)-1] = '\0'; |
214 |
|
if ((pin = popen(buf+1, "r")) == NULL) { |
215 |
|
fprintf(stderr, "%s: (%s): cannot execute \"%s\"\n", |