Hi all
(please .. CC me on the replies since I'm not subscribed to this list)

Let me try to describe the problem :
I have 2 cf files being imported from cfagent.cf on a certain moment.
Let's use as an example :
import:
   a.cf
   b.cf


if on all files I have a editfiles section like this one :
editfiles:
   {  /somefile   # same file on all a.cf , b.cf , c.cf
      EditSplit "!"
      ....
    }


The a script will run without any problem, once it process the
editfiles of b.cf , it tried to expand the string on EditSplit .. and
since it's the same char that it already uses as separators for
editfiles, it tries to expand it, causing errors and unpredictable
behavior.

The temporary solution is to avoid to set EditSplit to a value which
it currently holds, so I "defined" a char which I won't ever use as
separator (and not use on any string - in the example "^") and on
every instance of editfiles which I need to set a EditSplit char, I
first set to this "non-used" char to set it afterwards to a "usable"
one. Example :
editfiles:
   {  /somefile   # same file on all a.cf , b.cf , c.cf
      EditSplit "^"
      EditSplit "!"
      ....
    }

If someone can't reproduce the error, I can send some fragments of the
debug output.

Thanks,

Theo Diem
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to