Forum: Cfengine Help
Subject: Re: "Duplicate selection of value for variable ..." messages
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,19400,19405#msg-19405
Actually, there is a bit of an inconsistency here in the syntax. List variables
can be included into other lists and they expand correctly (and this is
documented in the Reference Guide). For example, the following works fine
without warnings:
"bar" slist => readstringlist( "c:\cygwin\tmp\foo" , "#.*" , "[\n]" , 1000
, 100000 );
"foo" slist => { @{bar} };
It follows (to my mind at least) that I should be able to replace @{bar} in the
"foo" definition with the call to readstringlist() directly, but as we have
seen that doesn't go well. I did notice after some more testing that it still
works fine, despite the "Duplicate selection" warnings.
Mark, any comments? Should we file a bug about this?
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine