Jim,
lots of things wrong here. Portability code that was not properly
ported and provoking a segfault from a missing test... Well 3.0.1a4
now posted which fixes all this.
Your job now: please find something right with cfengine ;-) After all,
you are Mr Wight (no Chinese applicant for the other position will be
considered..).
Now - a few hours left in the weekend to rest awhile...
cheers
M
Jim Wight wrote:
> The documentation has this example
>
> body location example
> {
> select_line_matching => "^Expression match.* whole line$";
> }
>
> and says that ^ and $ are not necessary.
>
> The following script
>
> body common control
> {
> bundlesequence => { "edit" };
> }
>
> bundle agent edit
> {
> files:
> "/tmp/thefile" edit_line => edit2;
> }
>
> bundle edit_line edit2
> {
> insert_lines:
> "Insert after two" location => "after2";
> }
>
> body location after2
> {
> select_line_matching => "^two$";
> before_after => "after";
> }
>
> produces this error
>
> cf3:./edit.cf:23,0: Broken variable syntax or bracket mismatch - inner ($/),
> near token ''
>
> If I replace both ^ and $ with .* (or remove them altogether) cf3 reports
>
> cf3 !! The promised line insertion (Insert after two) could not select a
> locator matching .*two.* in /tmp/thefile
>
> (and similaraly for the second case), despite there being a line in
> /tmp/thefile consisting of just the word "two":
>
> # grep '^two$' /tmp/thefile
> two
>
> In both cases, cf-agent ends with a segmentation fault.
>
> Jim
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine
--
Mark Burgess
-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway
Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine