${foo} and $(foo) are equivalent, and @{foo{ and @(foo) are also equivalent.
On Nov 25, 2010, at 2:43 PM, Seva Gluschenko wrote:
> I'm not Cfengine guru by any kind, but it seems like wrong syntax to me. Try
>
> "foo" slist => @(bar);
>
> (parenthesises, not braces).
>
> By all means, Cfengine
Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: "Duplicate selection of value for variable ..."
messages
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,19400,19409#msg-19409
Seva,
The result is the same. Braces and parenthesis are interchangeable in cfengi
I'm not Cfengine guru by any kind, but it seems like wrong syntax to me. Try
"foo" slist => @(bar);
(parenthesises, not braces).
By all means, Cfengine should have either been producing an error
message or handling it correctly, while it actually shows signs of
some memory corruption.
2010/11/2
no-re...@cfengine.com écrit :
>
> readstringlist() returns an array, so the braces around it are not needed.
> Removing them make the test work correctly:
That's right, thank you!
Then the three examples that use readstringlist in the reference
manual are wrong because they all use braces...