Forum: CFEngine Help
Subject: Re: Trying to use a variable inside a regex
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27490,27496#msg-27496
"sebooloff" expression => regcmp(".*$(i)$", execresult("/usr/sbin/getsebool
$(s)", "noshell"));
"seboolon" expression => regcmp(".*$(i)$", execresult("/usr/sbin/getsebool
$(s)", "noshell"));
These expressions are logically the same. I think your second expression should
be a 'not' given that your regex is 'off'.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine