[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: variables in FileExists
From: |
Eric Sorenson |
Subject: |
Re: variables in FileExists |
Date: |
Mon, 28 Jul 2003 15:48:44 -0700 (PDT) |
On Mon, 28 Jul 2003, Eric Sorenson wrote:
> Mark said maybe this is fixed in 2.0.7p3, I'll try that this morning
> (GMT-8 :-) )
Update, cfengine-2.0.7p3 doesn't error out, but it doesn't define the class
either. Here's the relevant '-d' output:
LVALUE myconfig
HandleLVALUE(myconfig) in action Groups:
EQUALS =
LEFTBRACK
RVAL-VAROBJ FileExists($(cfdir)/$(host).conf)
HandleGroupRvalue(FileExists($(cfdir)/$(host).conf))
CompareMacro(cfdir,cfdir=/home/eric/cvs/cfengine2/inputs)=cfdir
HandleGroupRVal(FileExists(/home/eric/cvs/cfengine2/inputs/sinistar.conf))
group (myconfig), type=0
[No match of class]
RIGHTBRACK
The file does exist; if I hardcode the path/filename, I get:
LVALUE myconfig
HandleLVALUE(myconfig) in action Groups:
EQUALS =
LEFTBRACK
RVAL-FUNCTION FileExists(/home/eric/cvs/cfengine2/inputs/sinistar.conf)
IsBuiltinFunction: FileExists(/home/eric/cvs/cfengine2/inputs/sinistar.conf)
HandleFunction: FileExists(/home/eric/cvs/cfengine2/inputs/sinistar.conf)
HandleGroupRVal(any) group (myconfig), type=0
AddClassToHeap(myconfig)
Appending [myconfig]
RIGHTBRACK
But that's not very useful. So I guess this is rightly a bug?
--
Eric Sorenson - EXPLOSIVE Networking - http://explosive.net