Skip to content
Myr

Fix the default search paths and documentation (#2093)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by itchyny · committed by GitHub · parent 5ae04c0 · Browse files · 4 files+7 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+7 added−7 removed

  • other:+7 added−7 removed

4 files+7 added−7 removed

modified:docs/content/manual/v1.5/manual.yml+2 added-2 removed
2763 unmodified lines
27642765 For paths starting with "~/", the user's home directory is2766 substituted for "~".27672768 For paths starting with "$ORIGIN/", the path of the jq executable2769 is substituted for "$ORIGIN".2768 For paths starting with "$ORIGIN/", the directory where the jq2769 executable is located is substituted for "$ORIGIN".27702771 For paths starting with "./" or paths that are ".", the path of2772 the including file is substituted for ".". For top-level programs2773 given on the command-line, the current directory is used.
100 unmodified lines
modified:docs/content/manual/v1.6/manual.yml+2 added-2 removed
3148 unmodified lines
31493150 For paths starting with "~/", the user's home directory is3151 substituted for "~".31523153 For paths starting with "$ORIGIN/", the path of the jq executable3154 is substituted for "$ORIGIN".3153 For paths starting with "$ORIGIN/", the directory where the jq3154 executable is located is substituted for "$ORIGIN".31553156 For paths starting with "./" or paths that are ".", the path of3157 the including file is substituted for ".". For top-level programs3158 given on the command-line, the current directory is used.
139 unmodified lines
modified:docs/content/manual/manual.yml+2 added-2 removed
3279 unmodified lines
32803281 For paths starting with `~/`, the user's home directory is3282 substituted for `~`.32833284 For paths starting with `$ORIGIN/`, the path of the jq executable3285 is substituted for `$ORIGIN`.3284 For paths starting with `$ORIGIN/`, the directory where the jq3285 executable is located is substituted for `$ORIGIN`.32863287 For paths starting with `./` or paths that are `.`, the path of3288 the including file is substituted for `.`. For top-level programs3289 given on the command-line, the current directory is used.
139 unmodified lines
modified:src/main.c+1 added-1 removed
590 unmodified lines
591 if (jv_get_kind(lib_search_paths) == JV_KIND_NULL) {592 // Default search path list593 lib_search_paths = JV_ARRAY(jv_string("~/.jq"),594 jv_string("$ORIGIN/../lib/jq"),595 jv_string("$ORIGIN/lib"));595 jv_string("$ORIGIN/../lib"));596 }597 jq_set_attr(jq, jv_string("JQ_LIBRARY_PATH"), lib_search_paths);598599 char *origin = strdup(argv[0]);
129 unmodified lines