-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add -0 command-line option #1373
Comments
Related to/dupe of #1658. |
Thanks @itchyny, though it looks like that option does not exist on I also don't see it for |
Indeed, the last release of jq was in 2018, long before this option was added. Are the releases no longer being updated and should we just build from source instead? |
I just built this from source, it looks like |
@itchyny anything left to do for this issue? |
This option has been fully implemented, so closing the issue. |
It'd be nice to be able to use ASCII
NUL
instead ofLF
for non-raw-output mode for use withxargs -0
and such. In raw output mode, of course, one can use-j
and output"\u0000"
as necessary.As a workaround until this is done, use raw-output mode and output raw values, but pipe all strings to
tojson
first:jq -rj '... | if type=="string" then tojson else . end'
.The text was updated successfully, but these errors were encountered: