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
Provenance
- Commit
4b5fcb9- Tree
1b3f8e9- Author
itchyny <itchyny@cybozu.co.jp>- Committer
GitHub <noreply@github.com>- Parent
5ae04c0
4 files changed+7 added−7 removed
modified:docs/content/manual/v1.5/manual.yml+2 added-2 removed
2763 unmodified lines2764 2765 For paths starting with "~/", the user's home directory is2766 substituted for "~".2767 2768- 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".2770 2771 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 linesmodified:docs/content/manual/v1.6/manual.yml+2 added-2 removed
3148 unmodified lines3149 3150 For paths starting with "~/", the user's home directory is3151 substituted for "~".3152 3153- 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".3155 3156 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 linesmodified:docs/content/manual/manual.yml+2 added-2 removed
3279 unmodified lines3280 3281 For paths starting with `~/`, the user's home directory is3282 substituted for `~`.3283 3284- 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`.3286 3287 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 linesmodified:src/main.c+1 added-1 removed
590 unmodified lines591 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);598 599 char *origin = strdup(argv[0]);129 unmodified lines