1
1
mirror of https://github.com/wader/fq.git synced 2024-12-27 15:42:07 +03:00
fq/pkg/interp/testdata/incudepath.fqtest

15 lines
312 B
Plaintext
Raw Normal View History

2021-08-14 20:50:17 +03:00
/library/a.jq:
def a: "a";
$ fq -L /library -n 'include "a"; a'
"a"
2021-09-05 14:38:13 +03:00
$ 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"
2021-08-14 20:50:17 +03:00
$ fq -L /wrong -n 'include "a"; a'
exitcode: 3
stderr:
2021-08-18 19:47:13 +03:00
error: arg:1:0: open a.jq: file does not exist