Works perfectly. Is there anything in the documentation I can refer to that 
explains the difference between @(this) and @{this}? I can't find a single 
example of this syntax in the stdlib or the unit_test stuff, and the only 
mention in the docs is an unexplained appearance in the "bundle edit_line 
lynryd_skynyrd" example.

I really appreciate the help with this ... the solution isn't something that 
would have come to me unless I got so frustrated that I started randomly 
swapping in different bracket types to see what happens. 

On Mar 25, 2011, at 6:05 AM, [email protected] wrote:

> Forum: Cfengine Help
> Subject: Re: slist from module?
> Author: neilhwatson
> Link to topic: https://cfengine.com/forum/read.php?3,21255,21264#msg-21264
> 
> Working example:
> 
> $ cf-agent -IKf ./bugs.cf 
> -> Executing '/home/nwatson/bin/modb' ...(timeout=-678,owner=-1,group=-1)
> -> Completed execution of /home/nwatson/bin/modb
> R: a list: one
> R: a list: two
> R: a list: three
> R: a list: four
> 
> $ cat bugs.cf 
> body common control
> {
> bundlesequence => { "test" };
> }
> 
> bundle agent test 
> {
> 
>        vars:
>                "a" slist => { @{modb.b} };
> 
>        commands:
>                "/home/nwatson/bin/modb", module => "true";
> 
>        reports:
>                linux::
>                        "a list: ${a}";
> }
> 
> $ cat ~/bin/modb 
> #!/bin/sh
> 
> printf '@b= { "one", "two", "three", "four" }'
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to