help-cfengine
[Top][All Lists]
Advanced

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

Bug in LocateLineMatching?


From: Harald Hannelius
Subject: Bug in LocateLineMatching?
Date: Mon, 3 Feb 2003 15:19:36 +0200 (EET)

The docs say that LocateLineMatching should move the current-position
pointer to the start of the line matching the quoted regular expression.

However, this command;

 { /etc/lilo.conf
                LocateLineMatching "image = /boot/2.4.19"
                BeginGroupIfNoLineContaining "# 3 Feb 03"
                        InsertLine "# 3 Feb 03"
                        InsertLine "image = /boot/2.4.20/bzImage"
                        InsertLine "  label = 2.4.20"
                        InsertLine '  append = "video=matrox:vesa:0x1BB"'
                        InsertLine ''
                EndGroup
        }


Produes this lilo.conf;


...
image = /boot/2.4.19
# 3 Feb 03 Harald
image = /boot/2.4.20/bzImage
  label = 2.4.20
  append = "video=matrox:vesa:0x1BB"
...

Indicating that the curren-position pointer was at the end of the line,
not the start of the line.

Is this right?


-- 
A: Top Posters
Q: What is the most annoying thing on mailing lists?

Harald H Hannelius | harald/a\arcada.fi      | GSM +358 50 594 1020 (NEW)





reply via email to

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