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,19407#msg-19407

Bug filed: https://cfengine.com/bugtracker/view.php?id=397

I just noticed another (maybe related) strange behavior. I think the following 
should work:

  "bar" slist   => readstringlist( "c:\cygwin\tmp\foo" , "#.*" , "[\n]" , 1000 
, 100000 );
  "foo" slist   => @{bar};

But it does not. I get an error message with strange characters:

 !! Redefinition of a constant scalar "foo" (was ▒
▒)                                                ▒ now ▒
Promise (version not specified) belongs to bundle 'test' in file '.\test.cf' 
near line 11
▒ now ▒▒)inition of a constant scalar "foo" (was ▒
Promise (version not specified) belongs to bundle 'test' in file '.\test.cf' 
near line 11
nova>:.\test.cf:11,27: rhs is a scalar, but lhs (slist) is not a scalar type, 
near token '@{bar}"'

I don't understand why @{bar} is considered a scalar.

Thanks for any clarification.

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

Reply via email to