Forum: Cfengine Help
Subject: build in function join()
Author: olee
Link to topic: https://cfengine.com/forum/read.php?3,20313,20313#msg-20313

Hi,

has anybody got this error? 

cf3:/opt/cfengine3/workdir/inputs/unit_join.cf:31,44: Unknown built-in function 
join(), near token ')'
No such FnCall "join()" in promise @ /opt/cfengine3/workdir/inputs/unit_join.cf 
near line 31

the file unit_join.cf is the example of documentation.

bundle agent test

{
vars:

  "mylist" slist => { "one", "two", "three", "four", "five" };

  "scalar" string => join("<->","mylist");

reports:

 linux::

  "Concatenated $(scalar)";

}

i checked the source code the function join itself is implemented and i tried 
different versions of cfengine 3.0.2, 3.0.4 and 3.1.3.  on all the same error.
so i have no more ideas where i could look for solve this!

thanx,

olee

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

Reply via email to