1
1
mirror of https://github.com/wader/fq.git synced 2024-12-27 07:24:48 +03:00
fq/pkg/interp/testdata/incudepath.fqtest
2021-10-26 11:02:30 +02:00

15 lines
312 B
Plaintext

/library/a.jq:
def a: "a";
$ fq -L /library -n 'include "a"; a'
"a"
$ fq --include-path /library -n 'include "a"; a'
"a"
$ fq -L /wrong -L /library -n 'include "a"; a'
"a"
$ fq -n 'include "/library/a"; a'
"a"
$ fq -L /wrong -n 'include "a"; a'
exitcode: 3
stderr:
error: arg:1:0: open a.jq: file does not exist