Created
November 30, 2016 17:04
-
-
Save neilhwatson/1c8a8874e528029393f5948aa69518b1 to your computer and use it in GitHub Desktop.
cf-agent quotting works with singe, double quotes, and backticks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
neil@luna:~/.cfagent/inputs$ cat quotetest.cf | |
body common control | |
{ | |
bundlesequence => { "main", }; | |
} | |
bundle agent main { | |
vars: | |
'var1' string => 'with single quotes'; | |
"var2" string => "with double quotes"; | |
`var3` string => `with backticks`; | |
reports: | |
'${var1}'; | |
"${var2}"; | |
`${var3}`; | |
} | |
neil@luna:~/.cfagent/inputs$ cf-agent -Kf quotetest.cf | |
R: with single quotes | |
R: with double quotes | |
R: with backticks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment