If you have strings that include backslashes, you should really escape
those backslashes, i.e.:
onlyif => "grep two\ words /tmp/file", # WRONG!
onlyif => "grep two\\ words /tmp/file", # right
In some cases, you can use single quotes instead
onlyif => 'grep two\ words /tmp/file', # right too
but you loose flexibility. I urge you to get your escapes right.
HTH,
Felix
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
My comment was not targeted at escaping specific characters. Whatever
you escape, if you want puppet to transfer a backslash to the client,
and the string containing that backslash is double-quoted in your
manifest, you should escape that backslash and avoid any ambiguity.
Regards,
Felix
Felix
The above line is giving you this warning? Please make double-sure.
There are lot of cases where this warning is justified, but the above
line should *not* generate it, as all of those sequences should be
recognized.
--