NOBUG - er, at least regarding double tabs.

Jo Rhett <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.bugs,gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
On Mar 28, 2008, at 12:02 PM, Paul Krizak wrote:
> And it worked fine.
...
> And that worked fine too.

Dangit, you're right.  I dropped some stuff in copy/paste.  FARG!

Well, here are the lines which won't match no matter what. And I'm  
having a devil of a time producing a test case for this problem.  But  
it's real.  The same lines work without double tabs...

jrhett@arran 46$ cat -vet testfile
*/10^I*^I*^I*^I*^Iroot^I/usr/local/bin/bsdsar_gather$
0^I2^I*^I*^I*^Iroot^I/usr/sbin/freebsd-update cron$
0^I*^I*^I*^I*^Iroot^I/usr/local/sbin/cfexecd -F$
0^I^I2^I*^I*^I*^Iroot^I/usr/sbin/freebsd-update cron$
0^I^I*^I*^I*^I*^Iroot^I/usr/local/sbin/cfexecd -F$

jrhett@arran 47$ cat -t cfagent.conf

control:
^Iactionsequence^I= ( editfiles )

editfiles:
^I{ /home/jrhett/test/testfile
^I^IDeleteLinesMatching "^0^I^I2^I*^I*^I*^Iroot^I/usr/sbin/freebsd- 
update cron"
^I^IDeleteLinesMatching "^0^I^I*^I*^I*^I*^Iroot^I/usr/local/sbin/ 
cfexecd -F"
^I}

jrhett@arran 48$ cfagent -qIf ./cfagent.conf
cfengine:arran: Couldn't find a private key (/home/jrhett/.cfagent/ 
ppkeys/localhost.priv) - use cfkey to get one
jrhett@arran 49$ cat -vet testfile
*/10^I*^I*^I*^I*^Iroot^I/usr/local/bin/bsdsar_gather$
0^I2^I*^I*^I*^Iroot^I/usr/sbin/freebsd-update cron$
0^I*^I*^I*^I*^Iroot^I/usr/local/sbin/cfexecd -F$
0^I^I2^I*^I*^I*^Iroot^I/usr/sbin/freebsd-update cron$
0^I^I*^I*^I*^I*^Iroot^I/usr/local/sbin/cfexecd -F$

-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source  
and other randomness
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.