]> granicus.if.org Git - jq/commit
fix --exit-code issues #1142 and #1139
authorRyoichi KATO <ryo1kato@gmail.com>
Sun, 29 Jul 2018 19:50:28 +0000 (12:50 -0700)
committerNico Williams <nico@cryptonector.com>
Tue, 18 Dec 2018 20:17:47 +0000 (14:17 -0600)
commit6d3d2750ec1e076cd86189b8fcfe1b760e2207c7
tree41a6bbe62ae66aeeaa51804b32e870d12173d328
parent712330940b82eb6ee5afa5ed72df3a73fdf2a7b4
fix --exit-code issues #1142 and #1139

* Set default error code to -4 in main(), Fixes #1142
* fix --exit-code with more than one object in input, Fixes #1139
    - Return code 1 or 4 based on last output, not last input.
src/main.c
tests/shtest