[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: list iteration?
From: |
Mike |
Subject: |
Re: list iteration? |
Date: |
Mon, 03 May 2004 18:42:16 -0000 |
User-agent: |
slrn/0.9.7.4 (Linux) |
In article <mailman.3108.1083600729.1061.help-cfengine@gnu.org>, Luke A. Kanies
wrote:
> 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.
>
> LUke
>
What about the second part? In an editfiles: section how do you add
to the variable such that the variable has new things to iterate
over in the shellcommands: section?
Mike
- list iteration?, Mike, 2004/05/03
- Re: list iteration?, Luke A. Kanies, 2004/05/03
- Message not available
- Re: list iteration?,
Mike <=
- Re: list iteration?, Luke A. Kanies, 2004/05/03
- Message not available
- Re: list iteration?, Mike, 2004/05/03
- Re: list iteration?, Steve Wray, 2004/05/03
- Re: list iteration?, Luke A. Kanies, 2004/05/05
- Re: list iteration?, Tod Oace, 2004/05/05
- Re: list iteration?, Luke A. Kanies, 2004/05/05
- Re: list iteration?, Tim Nelson, 2004/05/05