pkoppstein

Results 40 issues of pkoppstein

Consider the discrepancy between the number of results produced by these two invocations of jaq: jaq -n '"x"|sub("x"; "a", "b")' "a" "b" whereas: jaq -n '"x"|sub("y"; "a", "b")' "x" In...

jq and gojq are agreed: ``` jq -R 'scan("^(([^:]+): *(.*))?")'

help wanted

@halaxa asked me to start a new thread stemming from the discussion at https://github.com/halaxa/json-machine/issues/73 Hopefully the script described below, which I'll call jm, will provide a basis for discussion or...

enhancement

jq is inconsistent in the way it handles squished entities when reading from STDIN: ``` # sometimes it's able to distinguish them properly $ echo '1[]' | jq . 1...

bug

Sometimes one would like to be able to invoke a constant function multiple times without having to incur the cost of computation more than once. A trivial but perhaps fairly...

feature request

whilst is like while but more conventional.

feature request

The literal representation of certain negative numbers is not being properly preserved. Consider: ``` ./jq --version jq-1.6-268-gc99981c-dirty ./jq -nM '1E1000' 1E+1000 ./jq -nM '-1E1000' -1.7976931348623157e+308 # !!! ./jq -nM '100000000000000000000000000000002'...

bug

`def last: .[length-1]` This is sufficient to ensure that `pick(last)` works in the obvious way, as it did before some recent updates.

feature request

[EDIT: erroneous remarks about the "m" FLAG have been corrected.] There are several outstanding bug reports regarding jq's support for regular expression functionality (e.g. #2562), but it's beginning to dawn...

bug
oniguruma

lpad: left pad nwise/1 replaces _nwise/1 and works on arrays and strings. nwise($n; stream) is a stream-oriented version of nwise/1, and places no limits on what may appear in the...

feature request