Skip to content
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

No error or warning for incomplete input before record separator #1775

Open
skeeto opened this issue Dec 4, 2018 · 2 comments
Open

No error or warning for incomplete input before record separator #1775

skeeto opened this issue Dec 4, 2018 · 2 comments
Labels

Comments

@skeeto
Copy link

skeeto commented Dec 4, 2018

When a record separator byte truncates an array, string, or object, there is no warning or error and no further input is processed. For example:

printf '"\036"' | jq . ; echo exit=$?

Output:

exit=0

I expect to see an error. With --seq there is no warning:

printf '"\036' | jq --seq .
@Alanscut
Copy link
Contributor

hi @skeeto
This may be the result you want to see.
jq-version: master

root@os-001:jq# printf '"\036"' | ./jq --seq .
ignoring parse error: Unfinished string at EOF at line 1, column 3

@skeeto
Copy link
Author

skeeto commented Jan 15, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants