diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml index bfbde896..db28677c 100644 --- a/docs/content/manual/manual.yml +++ b/docs/content/manual/manual.yml @@ -3281,8 +3281,8 @@ sections: For paths starting with `~/`, the user's home directory is substituted for `~`. - For paths starting with `$ORIGIN/`, the path of the jq executable - is substituted for `$ORIGIN`. + For paths starting with `$ORIGIN/`, the directory where the jq + executable is located is substituted for `$ORIGIN`. For paths starting with `./` or paths that are `.`, the path of the including file is substituted for `.`. For top-level programs diff --git a/docs/content/manual/v1.5/manual.yml b/docs/content/manual/v1.5/manual.yml index 64bee206..5dc05fc1 100644 --- a/docs/content/manual/v1.5/manual.yml +++ b/docs/content/manual/v1.5/manual.yml @@ -2765,8 +2765,8 @@ sections: For paths starting with "~/", the user's home directory is substituted for "~". - For paths starting with "$ORIGIN/", the path of the jq executable - is substituted for "$ORIGIN". + For paths starting with "$ORIGIN/", the directory where the jq + executable is located is substituted for "$ORIGIN". For paths starting with "./" or paths that are ".", the path of the including file is substituted for ".". For top-level programs diff --git a/docs/content/manual/v1.6/manual.yml b/docs/content/manual/v1.6/manual.yml index ba5c0c66..e4926c08 100644 --- a/docs/content/manual/v1.6/manual.yml +++ b/docs/content/manual/v1.6/manual.yml @@ -3150,8 +3150,8 @@ sections: For paths starting with "~/", the user's home directory is substituted for "~". - For paths starting with "$ORIGIN/", the path of the jq executable - is substituted for "$ORIGIN". + For paths starting with "$ORIGIN/", the directory where the jq + executable is located is substituted for "$ORIGIN". For paths starting with "./" or paths that are ".", the path of the including file is substituted for ".". For top-level programs diff --git a/src/main.c b/src/main.c index 9b63dca8..45f61d0b 100644 --- a/src/main.c +++ b/src/main.c @@ -592,7 +592,7 @@ int main(int argc, char* argv[]) { // Default search path list lib_search_paths = JV_ARRAY(jv_string("~/.jq"), jv_string("$ORIGIN/../lib/jq"), - jv_string("$ORIGIN/lib")); + jv_string("$ORIGIN/../lib")); } jq_set_attr(jq, jv_string("JQ_LIBRARY_PATH"), lib_search_paths);