Forum: CFEngine Help
Subject: Re: splitstring("", " ", 100) returns slist { "" }
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26848,26849#msg-26849

Empty lists seemed to be allowed:

body common control {
        bundlesequence => { "main", };
}

bundle agent main {

        vars:
                "spaces" slist => { "" };

        reports:
                cfengine::
                        "Spaces => '${spaces}'";
}

$ !cf-a
cf-agent -Kf ./ss2.cf 
R: Spaces => ''


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

Reply via email to