itchyny
4b5fcb936f
Fix the default search paths and documentation ( #2093 )
2023-07-03 09:12:22 +09:00
itchyny
82d5602230
Fix "writing output failed" error of non ASCII output on Windows ( #2633 )
2023-06-28 17:54:40 +09:00
itchyny
98835eec24
Fix halt_error to print message without prefix in raw mode ( fix #1902 ) ( #2632 )
2023-06-27 07:33:21 +09:00
Anthony Sottile
6c5c8f2115
fix handling of -0 ( #2235 )
2023-06-06 20:19:43 +09:00
Stephen Dolan
89caf46a5f
Update URLs from stedolan to jqlang
2023-05-28 17:06:31 +01:00
Nicolas Williams
a9ce7244b4
Fix Windows build for 1.7 release (moar)
2021-09-06 22:17:57 -05:00
Paul Wise
24564b2d34
Add -0 / --nul-output option for processing values containing newlines
...
Closes: https://github.com/stedolan/jq/issues/1271
2019-12-30 15:37:14 -06:00
Nicolas Williams
2b4d51f697
Identify progname in more errors ( fix #1860 )
...
However, we should really use the argv[0] progname, not just jq.
Someday we may want to support aliases which automatically add certain
options, etc.
2019-03-24 23:36:18 -05:00
Nicolas Williams
0dab2b18d7
Add -b / --binary option for Windows
2019-03-24 23:23:16 -05:00
Jason Hood
88e1f59ec1
Allow globbing on Windows
...
The mingw-w64 runtime expands wildcards, which causes a discrepancy
between `main`'s `argv` (multiple file names) and Windows' `wargv` (a
single wildcard). Use `wmain` to retrieve the wide character args.
2019-02-17 23:58:23 -06:00
Jason Hood
87594f81d6
Prevent redirecting to NUL crash
...
Windows regards the `NUL` device as tty, which causes `WriteFile` to
fail (the bytes written pointer cannot be `NULL` in this case). Tweak
the color test to ensure tty is accurate.
2019-02-16 20:40:41 -06:00
Jason Hood
def42a31ca
Possibly enable color output on Windows ( #1494 )
...
Windows 10 supports color output, but it must be explicitly enabled;
ANSICON provides support for other versions. Enable color if either of
those are available. Resolves #1494 .
2019-02-16 20:40:41 -06:00
Ryoichi KATO
6d3d2750ec
fix --exit-code issues #1142 and #1139
...
* Set default error code to -4 in main(), Fixes #1142
* fix --exit-code with more than one object in input, Fixes #1139
- Return code 1 or 4 based on last output, not last input.
2018-12-18 14:17:47 -06:00
William Langford
a1f1231a73
Add missing jv_copy when printing with -ar
2018-11-20 09:58:25 -05:00
rain1
bf88c73c20
src/main.c: fix issue #1587 by using jv_dumpf in the raw-output and ascii-output case. retain fwrite in the raw-output case.
2018-03-01 14:33:47 -06:00
David Fetter
b4742c1257
Added rawfile
...
In passing, clean remnants of argfile from slurpfile docs.
2017-12-11 12:17:17 -06:00
Nico Williams
6d89e297fe
Add JQ_COLORS env var for color config ( fix #1252 )
2017-04-29 14:00:52 -04:00
William Langford
94035be3fa
Add --debug-trace=all for detailed debug output
...
When tracing execution, print the whole stack, not just the items used by the
current opcode
2017-03-26 05:36:22 -05:00
Nicolas Williams
8ea21a54ad
Add halt, halt_error builtins ( fix #386 )
2017-02-26 16:34:56 -06:00
Nicolas Williams
66fb962a66
Add $ARGS, --args and --jsonargs ( fix #1345 )
2017-02-25 19:13:28 -06:00
Yasuhiro Matsumoto
5d058fa416
Don't call SetConsoleOutputCP
...
Should use wide-string function instead of SetConsoleOutputCP.
Fixes #1121
2017-02-25 18:51:04 -06:00
Nicolas Williams
093d20c3b9
Fix cross-compilation build
2016-01-16 16:51:06 -06:00
Nicolas Williams
8f6f28c8d3
Make it easier to use jq with shebangs ( fix #1044 )
...
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-14 22:08:17 -08:00
Nicolas Williams
856a4b2f3f
Add note about IEEE754 to help msg
2015-12-15 00:00:03 -06:00
Cameron Sparr
6d76cd0a99
Change usage formatting
2015-12-14 23:58:28 -06:00
Nicolas Williams
5fe053671a
Assume . if either stdin/on isatty() ( fix #1028 )
...
And move the #define of isatty on Windows up.
2015-12-01 23:27:19 -06:00
David Tolnay
0c93eb3379
Move source files to src/
2015-08-23 20:36:11 -07:00