Forum: CFEngine Help Subject: Re: $(match.1) with comment_lines_containing Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,24529,24683#msg-24683
You don't mention which version of CFEngine are you using. With the latest (3.2.3) I don't see this problem. However, things in general work better if your regex matches the whole line, for example: "/tmp/sudoers" create => "true", edit_line => comment_lines_containing("^\s*Defaults\s+requiretty","#"); _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine