163 |
|
input[nfile].name = "<stdin>"; |
164 |
|
input[nfile].fp = stdin; |
165 |
|
} else { |
166 |
< |
input[nfile].name = argv[an]; |
167 |
< |
if ((input[nfile].fp = argv[an][0] == '!' ? |
168 |
< |
popen(argv[an]+1, "r") : |
169 |
< |
fopen(argv[an], "r")) == NULL) { |
166 |
> |
if (argv[an][0] == '!') { |
167 |
> |
input[nfile].name = "<Command>"; |
168 |
> |
input[nfile].fp = popen(argv[an]+1, "r"); |
169 |
> |
} else { |
170 |
> |
input[nfile].name = argv[an]; |
171 |
> |
input[nfile].fp = fopen(argv[an], "r"); |
172 |
> |
} |
173 |
> |
if (input[nfile].fp == NULL) { |
174 |
|
perror(argv[an]); |
175 |
|
quit(1); |
176 |
|
} |