Emanuele Torre
Emanuele Torre
`~/.jq` can be a directory with `.jq` files in it instead of a file.
Hmm, you are right; having `.jq` files in `~/.jq` is different from having a `~/.jq` that is a file. Only if `~/.jq` is a file, its content is sourced: https://github.com/jqlang/jq/blob/5029328d35f3e60037970d27f350a742af41aa02/src/linker.c#L423-L431...
That test is assuming that the login shell of the current user is a POSIX shell; it probably has something to do with that
Can you please try this patch? ```diff diff --git a/tests/shtest b/tests/shtest index 14aafbf..ca7e41f 100755 --- a/tests/shtest +++ b/tests/shtest @@ -507,11 +507,11 @@ test_no_color=true $msys && test_no_color=false $mingw && test_no_color=false if...
Also, I am confused by that `sed` command on MacOS, because I am pretty sure `s/^/\x12/` does not work in macOS sed. Maybe `s/^\x12//` works though. Could someone check with...
Or ``` /home/stefan/g/jq/jq --version NO_COLOR=1 /home/stefan/g/jq/jq -n . | od -tc NO_COLOR=1 script -qec '/home/stefan/g/jq/jq -n .' /dev/null | od -tc ```
LGTM if you add the test
I just remembered that `(start + end) / 2` for binary search is not recommended because it can overflow. This can be avoided using `start + (end - start) /...
Personally, I think just `del(.. | nulls)` is easier to understand; do we want to merge this alias anyway?
Yes, it would be nice to have manual pages for `jv_*()`, and other libjq public functions. ^^