mirror of
https://github.com/wader/fq.git
synced 2024-12-25 22:34:14 +03:00
c1a0cda5a8
Fix tostring for non-string JQValue:s, is now JSON Update EOF error
27 lines
494 B
Plaintext
27 lines
494 B
Plaintext
$ fq
|
|
exitcode: 2
|
|
stderr:
|
|
Usage: fq [OPTIONS] [--] [EXPR] [FILE...]
|
|
$ fq -n '1+"a"'
|
|
exitcode: 5
|
|
stderr:
|
|
error: cannot add: number (1) and string ("a")
|
|
$ fq -n '"abc" | halt_error(123)'
|
|
exitcode: 123
|
|
stderr:
|
|
error: abc
|
|
$ fq -n 'null | halt_error(123)'
|
|
exitcode: 123
|
|
$ fq -n invalid
|
|
exitcode: 3
|
|
stderr:
|
|
error: arg: function not defined: invalid/0
|
|
$ fq -n "("
|
|
exitcode: 3
|
|
stderr:
|
|
error: arg:1:1: unexpected EOF
|
|
$ fq . non-existing
|
|
exitcode: 2
|
|
stderr:
|
|
error: non-existing: no such file or directory
|