bug-cfengine
[Top][All Lists]
Advanced

[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:

    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




reply via email to

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