Mattias Wadman
Mattias Wadman
Ah sorry, thought you wanted to compare exact values. Maybe in your case you can do something like this: ```jq def contains_partial($v): (. + $v) == .; ``` Then use...
Hi again, I get a feeling it's suppose to say `select`? anyway, so something similar to: ```jq def find(g; c): first(g | select(c)); def find(c): find(.[]; c); def find_last(g; c):...
Nice bug report 👍 There is a `--rawfile` argument in master and it seems to be available in 1.6 also. But one issue with using that is that you will...
Aha good! yeah agree, I've been bitten by the same behaviour also. And also agree some kind of `--separate-slurps` or `--no-inputs-concat` flag etc is probably the least confusing way to...
That is strange indeed. What exact version of jq is this? i tried arch linux base that has jq 1.6 and can't reproduce: ``` $ docker run --rm -ti archlinux:base...
So if you do `jq -n empty` you get `true` as output? hmm wonder if `empty` somehow is redefined? but how...
``` [root@5fe756305f3b /]# pacman -Qi jq Name : jq Version : 1.6-4 Description : Command-line JSON processor Architecture : x86_64 URL : https://stedolan.github.io/jq/ Licenses : MIT Groups : None Provides...
No problem, always nice with a weird debug mystery :) Aha ok, yeah that function name is a bit unfortunate. Maybe should edit the wiki or add warning?
Trying to wrap my head around this. The breaking seems to happen because `a |= b` (`_modify(a; b)`?) at the moment always outputs one value (the first) even if b...
Aha yeah i noticed the code for _modify is quite special also https://github.com/stedolan/jq/blob/master/src/builtin.jq#L14 wonder why they ended up different.