Ah! I see...I misinterpreted what you were trying to do. I changed the
code to look like this:
editfiles:
any::
# Using real tabs
{ /home/skaven/tmp/jo/testfile
DeleteLinesMatching "^0 1$"
}
And it worked fine.
Additionally, I tried this:
any::
# Delete lines that begin with a zero, then two tabs, then a 1
{ /home/skaven/tmp/jo/testfile
DeleteLinesMatching "^0${tab}${tab}1$"
}
And that worked fine too.
In both cases:
Begin editing /home/skaven/tmp/jo/testfile
Deleted item 0 1
End editing /home/skaven/tmp/jo/testfile
I hope I'm accurately reproducing your test case now...though I'm still
not reproducing your results.
Paul Krizak 7171 Southwest Pkwy MS B400.2A
Advanced Micro Devices Austin, TX 78735
Linux/Unix Systems Engineering Desk: (512) 602-8775
Silicon Design Division Cell: (512) 791-0686
Jo Rhett wrote:
> On Mar 28, 2008, at 11:43 AM, Paul Krizak wrote:
>> Note that in both cases, all that is needed is the trailing ".*" to
>> make the regex work.
>> So I have to agree with the others on this thread -- this isn't a bug
>> -- you are just not using a full-line regex, or perhaps you've gotten
>> yourself confused with :set list versus what's actually in your code.
>
>
> Sorry, but putting .* afterwards is inaccurate for the line. It is a
> full line match. There is nothing after the 1 on that line.
>
> And in particular, this bug does not occur without two tabs. The same
> line with a tab and space works fine without the trailing .*
>
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine