Describe the bug
I expect the command
yq '"Test: \( .["First name"])"' data.yaml
to be correctly parsed as a string interpolation looking at displaying the value corresponding to the key First name.
Version of yq: yq (https://github.com/mikefarah/yq/) version v4.53.3
Operating system: Debian
Installed via: binary release
Input Yaml
data.yml:
value: things
First name: Bill
Command
The command you ran:
yq '"Test: \( .["First name"])"' data.yaml
Actual behaviour
Error: 1:14: lexer: invalid input text "First name\"])\""
Note that
yq '"Test: \( .value)"' data.yaml
works as expected by returning
Expected behaviour
Describe the bug
I expect the command
to be correctly parsed as a string interpolation looking at displaying the value corresponding to the key
First name.Version of yq: yq (https://github.com/mikefarah/yq/) version v4.53.3
Operating system: Debian
Installed via: binary release
Input Yaml
data.yml:
Command
The command you ran:
Actual behaviour
Note that
works as expected by returning
Expected behaviour