[Top][All Lists]

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

Re: list iteration?

From: Luke A. Kanies
Subject: Re: list iteration?
Date: Mon, 3 May 2004 11:08:10 -0500 (CDT)

On Mon, 3 May 2004, Mike wrote:

> I have read in the manual where you can define a variable
> var = ( a : b : c)

The syntax is actually:

  var = ( a:b:c )

Notice the lack of space.  For non-special cfengine variables, having
multiple values separated by spaces just changes the value of the variable
to each rvalue in turn, so with your above syntax, 'var' just ends up set
to 'c'.

Also make sure you've got spaces between the parentheses and the values,
as in my example.


It's very hard to predict things . . . Especially the future."
                -- Prof. Charles Kelemen, Swarthmore CS Dept.
Luke Kanies | |

reply via email to

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