Load library from ~/.jq

This commit is contained in:
Brendan Macmillan committed 2013-05-29 15:05:40 +10:00
1 parent f0b982795c
commit 6e373942e5
6 files changed
+58 -15

No files matched your search

+4 -2
View File
@@ -611,8 +611,10 @@ struct bytecode* jq_compile_args(const char* str, jv args) {
jv_free(name);
}
jv_free(args);
program = builtins_bind(program);
nerrors = block_compile(program, &locations, &bc);
nerrors = builtins_bind(&program);
if (nerrors == 0) {
nerrors = block_compile(program, &locations, &bc);
}
}
if (nerrors) {
fprintf(stderr, "%d compile %s\n", nerrors, nerrors > 1 ? "errors" : "error");