This website requires JavaScript.
Explore
Help
Sign In
go
/
hcl
Watch
2
Star
0
Fork
0
You've already forked hcl
Code
Issues
Pull Requests
Releases
Wiki
Activity
0c3742819f
hcl
/
test-fixtures
/
interpolate_escape.hcl
2 lines
33 B
HCL
Raw
Normal View
History
Unescape
Escape
Restore old behavior for \" within interpolations Before the parser rewrite, HCL would silently convert `\"` within interpolation braces to `"`. After the conversion, this became a syntax error. We've found several instances of Terraform configs in the wild using this syntax. It results in a hard "syntax error" message during config parsing. While avoiding the extra escape on double quotes within interpolations is definitely preferred, the UX of the syntax error feels harsh enough to be worth inserting this backwards compatibility for now, leaving us the option of deprecating it with a warning down the line.
2015-11-19 17:49:35 +00:00
foo
=
"${file(\"bing/bong.txt\")}"
Reference in New Issue
Copy Permalink