diff options
author | Nicolas Williams <nico@cryptonector.com> | 2015-04-23 18:26:57 -0500 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2015-04-23 18:26:57 -0500 |
commit | 7d938487dd61f129c1e1b40ff4fa9be27d1b24f5 (patch) | |
tree | bd5cf81a69c2c7e2121817dbe4c400f541889b42 | |
parent | fcfacb932d329457fc9b6837d3fcf6fffb6c4496 (diff) |
--slurp --raw-input is broken (fix #761)
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -437,7 +437,9 @@ int main(int argc, char* argv[]) { if ((options & SEQ)) parser_flags |= JV_PARSE_SEQ; - if (!(options & RAW_INPUT)) + if ((options & RAW_INPUT)) + jq_util_input_set_parser(input_state, NULL, (options & SLURP) ? 1 : 0); + else jq_util_input_set_parser(input_state, jv_parser_new(parser_flags), (options & SLURP) ? 1 : 0); // Let jq program read from inputs |