Forum: Cfengine Help Subject: parsestringarraidx unknown in cf3.1.5 ? Author: jean_luc Link to topic: https://cfengine.com/forum/read.php?3,21876,21876#msg-21876
Hello Everyone, I am trying to use function "parsestringarrayidx" and deployed a test promise from example: http://www.cfengine.org/manuals/cf3-reference.html#Function-parsestringarrayidx but I'm getting: cf3:./a.cf:38,10: Unknown built-in function parsestringarrayidx(), near token ')' No such FnCall "parsestringarrayidx()" in promise @ ./a.cf near line 31 Fatal cfengine error: Unknown type X in CopyRvalItem - should not happen # cf-agent -v -f ./a.cf | less [...] cf3> Reference time set to Tue May 10 16:42:09 2011 cf3> Cfengine - 3.1.5 Copyright (C) Cfengine AS 2008,2010- [...] This is not the only example of missing function. In this case: root@swift:/usr/src/cfengine-3.1.5# grep -rI parsestringarrayidx /usr/src/cfengine-3.1.5 /usr/src/cfengine-3.1.5/src/mod_functions.c: {"parsestringarrayidx",cf_int,6,PARSESTRINGARRAYIDX_ARGS,"Read an array of strings from a file and assign the dimension to a variable with integer indeces"}, /usr/src/cfengine-3.1.5/src/cf3.defs.h: cfn_parsestringarrayidx, /usr/src/cfengine-3.1.5/src/fncall.c: case cfn_parsestringarrayidx: root@swift:/usr/src/cfengine-3.1.5# What the heck I'm doing incorrectly ? Please, help ? Brgds, Pawel _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine