summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-02-11Some syntax tweaks for AIXbugfix/aix-issuesWilliam Langford
2017-02-09Define JV_*PRINTF_LIKE for non-__GNUC__ compilersWilliam Langford
2017-02-07fix truncate_stream to match docsJ Phani Mahesh
2017-02-04Add more missing math functionsNicolas Williams
2017-02-04Fix handling of unsupported math functionsNicolas Williams
2017-01-31Promote wiki more in READMENicolas Williams
2017-01-30Improve docs somewhat, inspired by #1326Nicolas Williams
2017-01-30Make |= delete LHS when RHS is empty (Fix #1314)Nicolas Williams
Now that #1313 is fixed, |= no longer outputs null when the RHS update expression outputs empty. When a user wants to keep the current value of the LHS they would have the RHS update expression output `.`, so having `empty` achieve the same thing would be redundant. The obvious thing to do is to delete the LHS when the RHS update outputs `empty` (i.e., doesn't output any values). It's reasonable to think that existing programs won't be broken by this change, because reduce and |= not handling empty well is clearly a bug. (Though it's possible that some programs were using empty to quickly terminate reduce or |=, it's not likely. They should use label/break instead.) Prior to this change |= would use the _last_ value output by the RHS update expression. With this change |= will use the _first_ value instead. This change _is_ a minor backwards-incompatible change. It may or may not be acceptable; we'll see. It is a useful change in that it makes |= faster when the update expression produces multiple values.
2017-01-30recurse (i.e., ..) needs to find leaf nullsNicolas Williams
2017-01-30Add SQL-style operators (#1322)Nicolas Williams
2017-01-30Make first(g) more efficient: extract only 1 valueNicolas Williams
first(g) was extracting two values, which, if g is slow, made first(g) slow. And if the second extraction were to throw an error, then first(g) would throw that error, which is clearly not the right thing to do. Besides that, first(g) was allocating garbage, which it no longer does.
2017-01-30reduce: handle empty updates (fix #1313)Nicolas Williams
2017-01-28Solaris needs XPG6 for c99Attila Fülöp
2017-01-27Merge pull request #1317 from wtlangford/dont-split-utf8-sequencesWilliam Langford
Handle cut-off UTF-8 sequences when reading files
2017-01-27Handle cut-off UTF-8 sequences when reading filesWilliam Langford
Read additional bytes from the file to complete the UTF-8 sequence so the bytes in it don't get converted to U+FFFD replacement characters.
2017-01-27Parse no deeper than MAX_PARSING_DEPTHW-Mark Kubacki
while true; do printf '{"deeper": '; done | jq .
2017-01-27Skip printing what's below a MAX_PRINT_DEPTHW-Mark Kubacki
This addresses #1136, and mitigates a stack exhaustion when printing a very deeply nested term.
2017-01-26gen_utf8_tables: remove unused variableJakub Wilk
2017-01-23Revert "Disable appveyor build for now"Jan Schulz
This reverts commit 0b8218515eabf1a967eba0dbcc7a0e5ae031a509. There is a new oniguruma package which previously trashed the build.
2017-01-23Typo fixedRichard Groves
simply -> simple
2017-01-23Documentation clarification suggestionsJanne Cederberg
2017-01-23Update download instructions for ArchJames Pearson Hughes
jq has been in the community repo for [just over a year now][0]. [0]: https://projects.archlinux.org/svntogit/community.git/commit/trunk?h=packages/jq&id=8d5e06065bc92bf56ea651970c9bda07fb545554
2017-01-23Typo: s/more/mode/ in `--seq`Tim McCormack
2017-01-23Fix input_(line_number|filename) leak memoryClément MATHIEU
2017-01-23Fix cross-compile tmp dir removalJay Satiro
- cd out of the tmp dir before attempting to remove it.
2016-03-21Disable appveyor build for nowNicolas Williams
2016-02-24Remove David from maintainersDavid Tolnay
2016-01-19Travis-CI build for OSX (fix #1083)Nicolas Williams
2016-01-18Always test sort_by/group_by post-#1082Nicolas Williams
2016-01-18Make jv_sort stable regardless of qsort details.qsort-stabilityStephen Dolan
2016-01-18Add AppVeyor badge to README.mdStephen Dolan
Thanks @JanSchulz, @nicowilliams!
2016-01-17Add --enable-ubsan (undefined behavior sanitizer)Nicolas Williams
2016-01-17Run failing tests on Windows; ignore failuresNicolas Williams
2016-01-17Make it possible to run tests with set -xNicolas Williams
One can now run: make TRACE_TESTS=1 check to get detailed output
2016-01-17Enable more tests on Windows; move sort_by testsNicolas Williams
Use %%FAIL IGNORE MSG for error messages that differ on Windows, and move the sort_by/group_by tests that fail qhen qsort() is not stable. Now only tests/sorttest and tests/shtest are disabled on Windows.
2016-01-17Tweak appveyor.yml; disable failing testsNicolas Williams
2016-01-16Upload build failure logsJan Schulz
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
2016-01-16Build a html helpJan Schulz
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
2016-01-16Run tests on appveyorJan Schulz
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
2016-01-16Add 32bit windows builds on appveyorJan Schulz
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
2016-01-16Build on windows (mingw) on appveyorJan Schulz
For this to work, one of the core commiter should do: * enable appveyor in the github project (grant access) * Make an appveyor account and add the github jq repo as a new project inspirations from: appveyor, msys2, use bash environment to build... * https://github.com/ariscop/elemental-ircd/blob/appveyor/appveyor.yml * https://github.com/khaledhosny/ots/pull/67/files * https://github.com/universal-ctags/ctags/blob/master/appveyor.yml * https://github.com/universal-ctags/ctags/blob/master/win32/appveyor.bat and with mvsc * https://github.com/khaledhosny/ots/blob/master/.appveyor.yml Signed-off-by: Nicolas Williams <nico@cryptonector.com>
2016-01-16Fix cross-compilation buildNicolas Williams
2016-01-16Fix Windows build (fix #911)Nicolas Williams
2016-01-15fixup non-maintainer buildNicolas Williams
2016-01-15Always build src/builtin.inc (fix #1069)Nicolas Williams
2016-01-15MultiByteToWideChar() usage bug (fix #1072)Nicolas Williams
2015-12-14Make it easier to use jq with shebangs (fix #1044)Nicolas Williams
Allow a continuation on a comment immediately after a shebang to make this traditional hack possible: #!/bin/sh # this next line is ignored by jq \ exec jq -f "$0" "$@" # jq code follows But continue only on the first line following a shebang, and only if it's a comment.
2015-12-15Add note about IEEE754 to help msgNicolas Williams
2015-12-14Change usage formattingCameron Sparr
2015-12-09Avoiding conditional directives that break statementsRomero Malaquias