-
|
Given data1.yaml .foo: dot
foo: nodotthis is as expected: $ var=foo yq eval '.[env(var)]' data1.yaml
nodotbut is there a better alternative to: $ var=foo; var=".$var" yq eval '.[env(var)]' data1.yaml
dotbecause it's not: $ var=foo yq eval '.["."+env(var)]' data1.yaml
Error: Scalars not yet supported for additionThanks for any hints! |
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Jan 11, 2021
Replies: 2 comments
-
|
Not sure if this helps, but you can put the "." in the original var |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Also the next release (after 4.3.1) will have string concatenation :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hobti01
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also the next release (after 4.3.1) will have string concatenation :)