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
When evaluating an expression that contains spaces against a yaml file, escaping the spaces do not work in Windows CMD or in Powershell. However, when evaluating the same expression against a new yaml file (--null-input flag), it works as expected.
Version of yq: 4.6.3
Operating system: Windows
Installed via: Downloaded latest binary
Input Yaml
a: trueb: 2
Command
In CMD.exe
yq e ".c = ""something" new""" sample.yml
or in Powershell:
yq e '.c = ""something" new""' sample.yml
Actual behavior
Error: open .c = "something new" sample.yaml: The filename, directory name, or volume label syntax is incorrect.
Expected behavior
a: trueb: 2c: something new
Additional context
The following command did run as expected:
In CMD.exe
yq e -n ".c = ""something" new"""
or in Powershell:
yq e -n '.c = ""something" new""'
Observed behavior
c: something new
The text was updated successfully, but these errors were encountered:
Describe the bug
When evaluating an expression that contains spaces against a yaml file, escaping the spaces do not work in Windows CMD or in Powershell. However, when evaluating the same expression against a new yaml file (--null-input flag), it works as expected.
Version of yq: 4.6.3
Operating system: Windows
Installed via: Downloaded latest binary
Input Yaml
Command
In CMD.exe
or in Powershell:
Actual behavior
Error: open .c = "something new" sample.yaml: The filename, directory name, or volume label syntax is incorrect.
Expected behavior
Additional context
The following command did run as expected:
In CMD.exe
or in Powershell:
Observed behavior
The text was updated successfully, but these errors were encountered: