Fix hang for slurped inputs with trailing newline
This commit is contained in:
1 parent
f06deb828a
commit
79ece35981
2 files changed
+6
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user