help-cfengine
[Top][All Lists]
Advanced

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

Re: Variable substitution using builtin functions


From: Mark . Burgess
Subject: Re: Variable substitution using builtin functions
Date: Sun, 8 Aug 2004 23:20:02 +0200 (MEST)

The known bugs are documented. Inside functions you need curly braces.

M

On  4 Aug, Eric Sorenson wrote:
> On 4 Aug 2004, Peter Sevborn wrote:
> 
>> However if I change
>> cfgroups_exists = ( FileExists($(CFINPUTS)/cf.groups) )
>> to
>> cfgroups_exists = ( FileExists(${CFINPUTS}/cf.groups) )
>> cfgroups_exists gets defined.
>> 
>> What is the difference between parenthesis and curly brackets arround
>> a variable using a builtin function? Did I miss something in the
>> documentation?
> 
> Curly braces and parens are equivalent -- except when they aren't.
> There is some odd parser behavior in variable-interpolated arguments 
> to the built-in functions like FileExists. This has come up on the
> mailing list in the past and should probably be FAQ-ized (or fixed).
> 



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





reply via email to

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