Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: "Duplicate selection of value for variable ..." 
messages
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,19400,19409#msg-19409

Seva,

The result is the same. Braces and parenthesis are interchangeable in cfengine 
syntax. I can't find it in the reference right now, but I'm pretty sure I saw 
it somewhere, and is how I always use them :)

Actually with parenthesis the output is slightly different, but still erroneous:

 !! Redefinition of a constant scalar "foo" (was 0▒▒ now 0▒▒)
Promise (version not specified) belongs to bundle 'test' in file '.\test.cf' 
near line 11
 !! Redefinition of a constant scalar "foo" (was 0▒▒ now 0▒▒)
Promise (version not specified) belongs to bundle 'test' in file '.\test.cf' 
near line 11
nova>:.\test.cf:11,26: rhs is a scalar, but lhs (slist) is not a scalar type, 
near token ';'


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to