[Top][All Lists]

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

$(dollar) internal variable double expanded

From: Elmar Kurgpold
Subject: $(dollar) internal variable double expanded
Date: Wed, 21 Feb 2001 02:13:01 -0800 (PST)

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:

            actionsequence = ( editfiles )
        { /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:


With 1.6.2, I get this:


|  Elmar Kurgpold
|  Email: address@hidden

reply via email to

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