Skip to content
Myr

exit immediately after halt or halt_error is called

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Instead of continuing to the next input, and only exiting if there are no more inputs. Closes #2533

authored by Emanuele Torre · committed by Nico Williams · parent 0eceded · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:src/main.c+2 added
690 unmodified lines
691 if (jv_is_valid(value)) {692 ret = process(jq, value, jq_flags, dumpopts);693 if (ret <= 0 && ret != JQ_OK_NO_OUTPUT)694 last_result = (ret != JQ_OK_NULL_KIND);695 if (jq_halted(jq))696 break;697 continue;698 }699700 // Parse error
40 unmodified lines