[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simple script different result with cfengine 1.5.4 and cfengine 1.6
From: |
Mark . Burgess |
Subject: |
Re: simple script different result with cfengine 1.5.4 and cfengine 1.6.0 |
Date: |
Tue, 12 Dec 2000 01:30:25 +0100 (MET) |
On 6 Dec, Stoned Elipot wrote:
> Hi,
> Hereis a little cfengine script and the result of cfengine 1.5.4 and 1.6.0
> execution of it. I found the results most susprising. Could you please
> tell me if I'm wrong somewhere...
>
> $ cat test.cf
> groups:
>
> foo = ( any )
>
> control:
> foo::
> var = ( "var_foo")
> !foo::
> var = ( "var_not_foo" )
>
> any::
> actionsequence = ( shellcommands )
>
> shellcommands:
>
> "/bin/echo $(var)"
>
> $ ./cfengine154 --version
> GNU cfengine-1.5.4
> Free Software Foundation 1995, 1996, 1997
> Donated by Mark Burgess, Centre of Science and Technology
> Faculty of Engineering, Oslo College, 0254 Oslo, Norway
> This program is covered by the GNU Public License and may be
> copied free of charge. No warranty is implied.
>
> $ ./cfengine154 -f test.cf
> cfengine:bandsept:/bin/echo var_f: var_foo
> $ ./cfengine160 --version
> GNU 1.6.0
> Free Software Foundation 1995-2000
> Donated by Mark Burgess, Faculty of Engineering,
> Oslo University College, 0254 Oslo, Norway
> This program is covered by the GNU Public License and may be
> copied free of charge. No warranty is implied.
>
> $ ./cfengine160 -f test.cf
> bandsept:test.cf:9: Warning: Redefinition of macro var=var_not_foo
> cfengine:bandsept:/bin/echo var_n: var_not_foo
> $
--
THanks. I found this problem and I shall release a patch tomorrow,
after testing some more.
Mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: address@hidden
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~