Greetings, I am getting this bug were readstringlist will have an extra blank line at the end. I can see why it would do this, but I don't believe it should. The example below is reading a file call list:
# cat ../list a b c # body common control { bundlesequence => { "test" }; } bundle agent test { vars: "list" slist => { readstringlist("$(sys.workdir)/list","#.*","[\n]",1000,10000) }; reports: Yr2009:: "list *$(list)*"; } cf3 ......................................................... cf3 Promise by: list *a* cf3 ......................................................... cf3 cf3 R: list *a* cf3 cf3 ......................................................... cf3 Promise by: list *b* cf3 ......................................................... cf3 cf3 R: list *b* cf3 cf3 ......................................................... cf3 Promise by: list *c* cf3 ......................................................... cf3 cf3 R: list *c* cf3 cf3 ......................................................... cf3 Promise by: list ** cf3 ......................................................... cf3 cf3 R: list ** <======= should this be here? cf3 _______________________________________________ Bug-cfengine mailing list Bug-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/bug-cfengine