You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Delete such as del(. | select(.a1=="abc")) and not equals filter such as del(. | select(.a1!="abc")) does not work for yaml files with multiple documents:
Version of yq: 4.27.5
Operating system: mac/
Installed via: pip3 install
Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
data1.yml:
---
a1: abca2: def
---
a1: abda2: def
Command
The command you ran:
yq 'del(. | select(.a1=="abc"))' data1.yml
Actual behavior
---
a1: abca2: def
---
a1: abda2: def
Expected behavior
---
a1: abca2: def
Command 2
The command you ran:
yq 'del(. | select(.a1!="abd"))' data1.yml
Actual behavior
---
a1: abca2: def
---
a1: abda2: def
Expected behavior
---
a1: abca2: def
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Delete such as
del(. | select(.a1=="abc"))
and not equals filter such as del(. | select(.a1!="abc")) does not work for yaml files with multiple documents:Version of yq: 4.27.5
Operating system: mac/
Installed via: pip3 install
Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
data1.yml:
Command
The command you ran:
Actual behavior
Expected behavior
Command 2
The command you ran:
Actual behavior
Expected behavior
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: