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
String interpolation (with \(expression) syntax) doesn't work. The expression and surrounding \() is printed literally in the resulting string.
Version of yq: 4.22.1
Operating system: mac
Installed via: homebrew
Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
data1.yml:
value: 3
Command
The command you ran:
yq '"value: \(.value)"' data1.yml
Actual behavior
value: \(.value)
Expected behavior
value: 3
Additional context
Example of the expected behavior with jq:
I haven't actually added that feature in yet (and didn't know that you could do that in jq!) Until then, you can get similar result by either using string concatenation, or using envsubst
Describe the bug
String interpolation (with
\(expression)
syntax) doesn't work. The expression and surrounding\()
is printed literally in the resulting string.Version of yq: 4.22.1
Operating system: mac
Installed via: homebrew
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
Additional context
Example of the expected behavior with
jq
:The text was updated successfully, but these errors were encountered: