You have a problem here:
groupX::
"extra_line"string => "57 10 * * * root nice -n -1
$(path)/$(id)-$(extra).sh";
The problem is that $(extra) is an slist, so you are iterating over it, and
that redefines the "extra_line" variable. It's as if you said:
groupX::
Forum: Cfengine Help
Subject: Re: variables expansion in edit_line
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16707,16708#msg-16708
Try 'policy' section 6.1.7 of the Reference.
___
Help-cfengine mailing list
Hel