Skip to content

Instantly share code, notes, and snippets.

@neilhwatson
Created November 30, 2016 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilhwatson/1c8a8874e528029393f5948aa69518b1 to your computer and use it in GitHub Desktop.
Save neilhwatson/1c8a8874e528029393f5948aa69518b1 to your computer and use it in GitHub Desktop.
cf-agent quotting works with singe, double quotes, and backticks
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