-
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
Remove deprecated --nul-output
documentation
#2535
Conversation
`--nul-output` / `-0` was removed RE: jqlang#1271 and jqlang#2350
--nul-output
documentation
Hi, what version is this? with jq master i see this. $ jq --version
jq-1.6-159-gcff5336
$ jq -n --nul-output '1,2,3' | hexdump -C
00000000 31 00 32 00 33 00 |1.2.3.|
00000006
$ jq -n --null-output '1,2,3' | hexdump -C
jq: Unknown option --null-output
Use jq --help for help with command-line options,
or see the jq manpage, or online docs at https://stedolan.github.io/jq
# -0 treated as number
$ jq -n -0 '1,2,3' | hexdump -C
00000000 2d 30 0a |-0.|
00000003 Confusd, so #1271 was not reverted? and -0 was not added? |
Sorry if I was mistaken. I'm running on M2 Macbook Air
I assumed from the issues linked above that this functionality had been reverted, as it is in documentation, but not in the latest official release as far as I could tell. |
Unfortunately, the versioning information on the online documentation is not always exactly correct. |
@peter-dolkens No worries, i'm confused also what the state of master is. Looking at the code in master https://github.com/stedolan/jq/blob/master/src/main.c#L402 seems like |
For what it's worth - whilst I understand the reasoning behind the discussions I linked - I'd still support The challenge I was trying to solve was I had a collection of "json-like" blobs serialized in a larger json object. I was trying to output them raw using I personally don't think the security argument holds much weight, as ultimately it's not the parsing or separator that's causing the security vulnerability, but rather their use on unsanitized/unverified inputs. Javascript has |
Ref: #2235. |
Now that #2235 is merged to the master branch, I think the master version fully support what is written in the development version of documentation. Note (again) that this option is written in the development version document not 1.6, and will be shipped in the next version. |
--nul-output
/-0
was removed RE: #1271 and #2350This updates the documentation so one doesn't go crazy trying to figure out why it's not working 😂