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
evaluate
Describe the bug evaluate command moves comments to a different line
Version of yq: 4.44.3 Operating system: mac Installed via: homebrew
Input Yaml data1.yml:
line1: "aaa" line2: - name: foo array: # comment1 - key1: val1 key2: val2 # comment2 # comment3 - key1: val10 key2: val20
Command
cat data1.yml | yq eval .line2
Actual behavior
- name: foo array: # comment1 - key1: val1 key2: val2 # comment3 - key1: val10 # comment2 key2: val20
Expected behavior
- name: foo array: # comment1 - key1: val1 key2: val2 # comment2 # comment3 - key1: val10 key2: val20
Additional context It works OK when there is no empty line between the comments (line number 9).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
evaluate
command moves comments to a different lineVersion of yq: 4.44.3
Operating system: mac
Installed via: homebrew
Input Yaml
data1.yml:
Command
Actual behavior
Expected behavior
Additional context
It works OK when there is no empty line between the comments (line number 9).
The text was updated successfully, but these errors were encountered: