Closed erhhung closed 4 years ago
This is really a jq
error handling issue:
$ echo '{"aa":"2AA2","bb":{"aaa":[123,"cccc",[1,2]],"c":321}}'| jq '.|sort'
jq: error (at <stdin>:1): object ({"aa":"2AA2...) cannot be sorted, as it is not an array
jiq should be catching these errors though. It does for everything else.
I just "git pull"ed your master branch half hour ago to verify the "error+output" enhancement, but hit this issue.
Run the standard sample—or any input—and start typing
.|sort
As soon as I finish typing the word "sort", jiq crashes:macOS 10.15.6, go1.15, jiq 0.7.0, jq-1.6