Forum: Cfengine Help
Subject: Boolean operators list?
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,21565,21565#msg-21565
Is there a list of the boolean operators anywhere? In reading through the
reference manual, there are occasionally classes combined with a period. In
variables, that's used for scoping, but I'm fairly sure that's not the
intention in the class combinations. For example, in procss_result's
documentation, there's this:
process_result => "command.(process_owner|vsize).!pid";
>From context, I'm guessing that the period is "and" here, as opposed to being
>"is a subelement of" in variable definitions. In the same documentation, I
>might guess that the available operators are "|&!.", except that the example
>uses parens, and parens aren't listed in the allowed input range. So, I go to
>something in the documentation which is of type class, and see allowed input
>range of
a-zA-Z0-9_!&@@$|.()\[\]{}]+
Stripping out the letters, numbers, and underscore, it looks like I can use
parens - but then, the curly braces, square brackets, and at / dollar are in
there, so mabe parens are only included because you can put a variable in for
something which expects a class.
IMHO, this is the biggest failing in the reference manual. There section on
syntax is somewhat prosaic, while I really want to see somethign simple like a
bulleted list of operators, default allowed ranges for string lengths / array
elements, the difference between $(var) and ${var}, etc. It'd be awesome if
that's actually documented somewhere, though, and I'm just ranting like a
lunatic for no reason. :)
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine