We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug I expect echo '# abc\n- def\n# ghi' | yq 'sort' to produce:
echo '# abc\n- def\n# ghi' | yq 'sort'
# abc - def # ghi
However, it drops the # abc and yields
# abc
- def # ghi
Oddly enough, yq . doesn't drop the comment:
yq .
% echo '# abc\n- def\n# ghi' | yq . # abc - def # ghi
Version of yq: 4.21.1 Operating system: mac Installed via: macports
Input Yaml
Command echo '# abc\n- def\n# ghi' | yq 'sort' echo '# abc\n- def\n# ghi' | yq .
Actual behavior
Expected behavior
Additional context N/A
The text was updated successfully, but these errors were encountered:
Fixed sort dropping head comment #1181
ea66a73
Thanks for reporting, will fix in the next release.
Sorry, something went wrong.
Fixed in 4.24.5
same error when using | line doesnt count the first line, when it's a comment. Is this a bug or intentional?
| line
No branches or pull requests
Describe the bug
I expect
echo '# abc\n- def\n# ghi' | yq 'sort'
to produce:However, it drops the
# abc
and yieldsOddly enough,
yq .
doesn't drop the comment:Version of yq: 4.21.1
Operating system: mac
Installed via: macports
Input Yaml
Command
echo '# abc\n- def\n# ghi' | yq 'sort'
echo '# abc\n- def\n# ghi' | yq .
Actual behavior
Expected behavior
Additional context
N/A
The text was updated successfully, but these errors were encountered: