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

yq -n errors out with tty input #117

Closed
pisto opened this issue Feb 26, 2021 · 1 comment
Closed

yq -n errors out with tty input #117

pisto opened this issue Feb 26, 2021 · 1 comment

Comments

@pisto
Copy link

pisto commented Feb 26, 2021

A discrepancy with jq:

[pisto@kp ~]$ jq -rn '"ok"'
ok
[pisto@kp ~]$ yq -rn '"ok"' < /dev/null 
ok
[pisto@kp ~]$ echo | yq -rn '"ok"'
ok
[pisto@kp ~]$ yq -rn '"ok"'
usage: yq [options] <jq filter> [YAML file...]
[...]
@kislyuk
Copy link
Owner

kislyuk commented Jun 13, 2021

Thanks for pointing this out. This should be fixed in 36995e5; released in v2.12.2.

@kislyuk kislyuk closed this as completed Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants