version 1.4, 2019/04/03 09:49:49 |
version 1.5, 2019/04/03 11:23:48 |
Line 225 parse_file(int fd, char *fname) |
|
Line 225 parse_file(int fd, char *fname) |
|
continue; |
continue; |
} |
} |
if (in_arg) { |
if (in_arg) { |
if (in_quotes == 0 && b[pend] == '"') { |
if (in_quotes == 0 && |
in_quotes = 1; |
(b[pend] == '\'' || b[pend] == '"')) { |
|
in_quotes = b[pend] == '"' ? 2 : 1; |
pend++; |
pend++; |
continue; |
continue; |
} |
} |
if (advance(b, rlen, &pend, |
if (advance(b, rlen, &pend, |
in_quotes ? "\"" : " >") && rsz > 0) |
in_quotes == 2 ? "\"" : |
|
in_quotes == 1 ? "'" : " >") && rsz > 0) |
break; |
break; |
in_arg = in_quotes = elem_end = 0; |
in_arg = in_quotes = elem_end = 0; |
if (b[pend] == '>') { |
if (b[pend] == '>') { |