Forum: Cfengine Help
Subject: Re: regexp parameter quoting
Author: jonb1987
Link to topic: https://cfengine.com/forum/read.php?3,21851,21854#msg-21854
OK, so I quoted BOTH parameters...
"/etc/passwd"
handle => "etc_passwd",
comment => "Set compat mode in passwd",
edit_line => fix_line("^\+::::::.*", "\+::::::/bin/bash"); # +
quoted to prevent mis-interpretation in regexp's
and I do not get the error.
Unfortunately, I now get he '\' appearing in the /etc/passwd file, sigh.
So I'm fundamentally misunderstanding quoting in cfengine.
Can anyone help on this?
Thanks.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine