Skip to content

Commit 9ac3066

Browse files
committed
Add -0 ref #2235 and addition example usage
1 parent 4b48076 commit 9ac3066

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

NEWS.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,16 @@ Changes
6666
```
6767
- Speed up and refactor some builtins, also remove `scalars_or_empty/0`. #1845 @muhmuhten
6868
- Add `--binary`/`-b` on Windows for binary output. To get `\n` instead of `\r\n` line endings. 0dab2b1 @nicowilliams
69-
- Add `--nul-output`/`-0` for null (zero byte) separated output. #1990 @pabs3
69+
- Add `--nul-output`/`-0` for null (zero byte) separated output. #1990 @pabs3, #2235 @asottile
7070
```sh
71+
# will output a zero byte between outputs
7172
$ jq -n0 '1,2,3' | xxd
7273
00000000: 3100 3200 3300 1.2.3.
74+
# can for example be used with xargs -0
75+
$ jq -n -0 1,2,3 | xargs -0 -n1
76+
1
77+
2
78+
3
7379
```
7480
- Fix issue converting string to number after previous convert error. #2400 @thalman
7581

0 commit comments

Comments
 (0)