We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug jq -e decreases exit code by 10 when halt_error(number_bigger_then_9) is used
To Reproduce jq -en 'halt_error(9)'; echo $? # returns 9, it's ok jq -en 'halt_error(10)'; echo $? # returns 0, 10 expected jq -en 'halt_error(11)'; echo $? # returns 1, 11 expected jq -en 'halt_error(110)'; echo $? # returns 100, 110 expected
Environment (please complete the following information):
OS and Version: Distributor ID: Ubuntu Description: Ubuntu 16.04.7 LTS Release: 16.04 Codename: xenial
jq version: 1.6
Additional context NaN
The text was updated successfully, but these errors were encountered:
Or reproducing one-liner can be used:
for i in {0..255}; do jq -en "halt_error($i)"; echo "[$i] => $?"; done
Its output is located in file output-jq.txt. It was also jq-1.6.
Distributor ID: openSUSE Description: openSUSE Tumbleweed Release: 20201114
Sorry, something went wrong.
This is a bug of 1.6, but resolved by #1697 (6d3d275) and already fixed in the master branch.
No branches or pull requests
Describe the bug
jq -e decreases exit code by 10 when halt_error(number_bigger_then_9) is used
To Reproduce
jq -en 'halt_error(9)'; echo $? # returns 9, it's ok
jq -en 'halt_error(10)'; echo $? # returns 0, 10 expected
jq -en 'halt_error(11)'; echo $? # returns 1, 11 expected
jq -en 'halt_error(110)'; echo $? # returns 100, 110 expected
Environment (please complete the following information):
OS and Version:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial
jq version: 1.6
Additional context
NaN
The text was updated successfully, but these errors were encountered: