Forum: CFEngine Help Subject: Re: Var in var : limitation ? Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,26678,26690#msg-26690
So, why would you solve the problem this way? If you want to define a bunch of slists for different repositories, just use an array: "repositories[$(g.service_detected]" = slist {}; While there are potentially reasons to concatenate strings to assemble a variable, all of them that I can think of are also reasons to use an array. :) And the only typing you need is to add a couple of square brackets to your existing code. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine