bug-cfengine
[Top][All Lists]
Advanced

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

Re: $(dollar) internal variable double expanded


From: Mark . Burgess
Subject: Re: $(dollar) internal variable double expanded
Date: Wed, 21 Feb 2001 13:10:40 +0100 (MET)

On 21 Feb, Elmar Kurgpold wrote:
> I tried to use the $(dollar) internal variable in editfiles to insert a
> variable name into a text file.  It does not put in the string '$FOO', but
> rather the current value for the variable $FOO.  This behavior has changed
> from previous versions of cfengine.  Here is an example:
> 
>     control:
>           actionsequence = ( editfiles )
>     editfiles:
>       any::
>       { /tmp/foo
>         ReplaceAll "cfinputs variable"  With "$(dollar)(CFINPUTS)"
>         ReplaceAll "cfinputs directory" With "$(CFINPUTS)"
>       }
> 
> And then the file /tmp/foo contains:
> 
>     cfinputs variable
>     cfinputs directory
> 
> Using 1.5.4, I get what I expect:
> 
>     $(CFINPUTS)
>     /opt/local/etc/cfinputs
> 
> With 1.6.2, I get this:
> 
>     /opt/local/etc/cfinputs
>     /opt/local/etc/cfinputs
> 
> 
> |  Elmar Kurgpold
> |  Email: address@hidden


Ok - this was easy to fix. I am going to release 1.6.3 today, so it
made it into the release! Thanks again for point this out.

best
Mark

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

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