Fix hang for slurped inputs with trailing newline

This commit is contained in:
William Langford committed 2017-12-04 20:10:56 -05:00
1 parent f06deb828a
commit 79ece35981
2 files changed
+6 -4

No files matched your search

+2
View File
@@ -126,6 +126,8 @@ fi
echo "[1,2,3,4]" > $d/expected
printf "[1,2][3,4]" | $JQ -cs add > $d/out 2>&1
cmp $d/out $d/expected
printf "[1,2][3,4]\n" | $JQ -cs add > $d/out 2>&1
cmp $d/out $d/expected
## Test streaming parser