1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 09:56:07 +03:00
fq/pkg/interp/testdata/exprfile.fqtest

23 lines
343 B
Plaintext

/test.jq:
123
/test2.jq:
.headers[0].header.magic | tovalue
/err.jq:
asdad)
$ fq -n -f test.jq
123
/test.jq:
123
$ fq -f test2.jq test.mp3
"ID3"
$ fq --from-file test2.jq test.mp3
"ID3"
$ fq -nf err.jq
exitcode: 3
stderr:
error: err.jq:1:6: unexpected token ")"
$ fq -n -f missing
exitcode: 2
stderr:
error: missing: no such file or directory