help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list iteration, appending lists to lists?


From: Mark Burgess
Subject: Re: list iteration, appending lists to lists?
Date: Wed, 10 Aug 2005 06:03:01 +0200

This is just not the way variable expansion is defined. Iteration occurs
only at specific locations.  

M

On Wed, 2005-08-10 at 15:22 +1200, Steve Wray wrote:
> I had thought that I could use list iteration like this:
> 
> somelist = ( foo:bar:baz" )
> 
> anotherlist = ("somefile:$(somelist).conf" )
> 
> and that this would expand to:
> 
> "somefile:foo.conf:bar.conf:baz.conf"
> when I used it in a 'files' action.
> 
> But it doesn't. It expands into:
> "somefile:foo:bar:baz.conf"
> 
> which is less useful to me.
> 
> I've been trying to figure out how to make it work as I want, but no
> luck so far.
> 
> Suggestions would be welcome!
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine





reply via email to

[Prev in Thread] Current Thread [Next in Thread]