Title
qq rejects valid YAML plain scalar but accepts block scalar equivalent
Description
qq -i yaml fails to parse a YAML file that is accepted by yq, even though the two inputs are semantically identical. The failure occurs when a list item is expressed as a multiline plain scalar; rewriting it as a block scalar works.
Reproduction
Failing input
key:
- dummy_args=(
--null-input
)
error parsing input: [4:5] value is not allowed in this context
Same input accepted by yq
{
"key": [
"dummy_args=( --null-input )"
]
}
Working variant
Equivalent value expressed as a block scalar:
key:
- |
dummy_args=(
--null-input
)
This parses correctly with both qq and yq.
Expected behavior
The original YAML should be accepted, as it is valid and parsed successfully by yq.
Actual behavior
qq rejects the plain-scalar form with a syntax error.
Environment
- OS: Debian Trixie Linux
qq: v0.3.4 (but the --version output reports v0.3.3)
Title
qqrejects valid YAML plain scalar but accepts block scalar equivalentDescription
qq -i yamlfails to parse a YAML file that is accepted byyq, even though the two inputs are semantically identical. The failure occurs when a list item is expressed as a multiline plain scalar; rewriting it as a block scalar works.Reproduction
Failing input
Same input accepted by
yqyq . aoeu.yaml{ "key": [ "dummy_args=( --null-input )" ] }Working variant
Equivalent value expressed as a block scalar:
This parses correctly with both
qqandyq.Expected behavior
The original YAML should be accepted, as it is valid and parsed successfully by
yq.Actual behavior
qqrejects the plain-scalar form with a syntax error.Environment
qq: v0.3.4 (but the--versionoutput reports v0.3.3)