207 |
|
|
208 |
|
fgetline(buf, sizeof(buf), fin); |
209 |
|
if (expand) { |
210 |
< |
if (xac > 2) { |
211 |
< |
if ((pin = popen(buf+1, "r")) == NULL) { |
212 |
< |
fprintf(stderr, |
213 |
< |
"%s: (%s): cannot execute \"%s\"\n", |
214 |
< |
progname, fname, buf); |
215 |
< |
exit(1); |
216 |
< |
} |
217 |
< |
xform(buf, pin); |
218 |
< |
pclose(pin); |
219 |
< |
} else { |
220 |
< |
fflush(stdout); |
221 |
< |
system(buf+1); |
210 |
> |
if ((pin = popen(buf+1, "r")) == NULL) { |
211 |
> |
fprintf(stderr, "%s: (%s): cannot execute \"%s\"\n", |
212 |
> |
progname, fname, buf); |
213 |
> |
exit(1); |
214 |
|
} |
215 |
+ |
xform(buf, pin); |
216 |
+ |
pclose(pin); |
217 |
|
} else { |
218 |
|
printf("\n%s", buf); |
219 |
|
if (xac > 1) { |