Skip to content

Commit

Permalink
Add -0 ref #2235 and addition example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Jun 6, 2023
1 parent 4b48076 commit 9ac3066
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,16 @@ Changes
```
- Speed up and refactor some builtins, also remove `scalars_or_empty/0`. #1845 @muhmuhten
- Add `--binary`/`-b` on Windows for binary output. To get `\n` instead of `\r\n` line endings. 0dab2b1 @nicowilliams
- Add `--nul-output`/`-0` for null (zero byte) separated output. #1990 @pabs3
- Add `--nul-output`/`-0` for null (zero byte) separated output. #1990 @pabs3, #2235 @asottile
```sh
# will output a zero byte between outputs
$ jq -n0 '1,2,3' | xxd
00000000: 3100 3200 3300 1.2.3.
# can for example be used with xargs -0
$ jq -n -0 1,2,3 | xargs -0 -n1
1
2
3
```
- Fix issue converting string to number after previous convert error. #2400 @thalman

Expand Down

0 comments on commit 9ac3066

Please sign in to comment.