help-cfengine
[Top][All Lists]
Advanced

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

Re: nested groups in editfiles


From: Mark Burgess
Subject: Re: nested groups in editfiles
Date: Thu, 6 Feb 2003 15:15:03 +0100 (MET)

On  4 Feb, Jamie Wilkinson wrote:
> BeginGroup...EndGroup aren't nestable, are they? 
> http://www.gnu.org/manual/cfengine-1.6.3/html_node/cfengine-Reference_65.html
> says "up to the first EndGroup", so I'm going to assume that they
> aren't.
> 
> Pity.

Why not? This works:


editfiles:

{ /tmp/test

BeginGroupIfNoSuchLine "Bblabla"
  BeginGroupIfNoSuchLine "fish"
  
     Append "Bblabla"
     Append "xxx"
  EndGroup
Append "zub"
EndGroup
}



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]