Article View: news.software.nntp
Article #35192cnfsstat - continuation bugfix
From: bill davidsen
Date: Fri, 05 Feb 1999 00:00
Date: Fri, 05 Feb 1999 00:00
32 lines
1721 bytes
1721 bytes
I don't see in the man pages that you can use continuation lines in the
cycbufs.conf file, but there's code to handle it, and it makes the file
a lot easier to read.
The cnfsstat script doesn't know about this, here's how to make it work.
This is just the bugfix, I am not quite ready to release my enhancements
yet, due to unexplained failure with raw partitions.
This patch against 2.2.
================================================================
*** /usr/local/news/bin/cnfsstat Thu Feb 4 15:59:35 1999
--- ./cnfsstat Thu Feb 4 19:42:40 1999
***************
*** 121,126 ****
--- 121,133 ----
while(<CONFFILE>) {
$_ =~ s/^\s*(.*?)\s*$/$1/;
+ # Here we handle continuation lines
+ while (m/\\$/) {
+ $contline = <CONFFILE>;
+ $contline =~ s/^\s*(.*?)\s*$/$1/;
+ chop;
+ $_ .= $contline;
+ }
# \x23 below is #. Emacs perl-mode gets confused by the "comment"
next if($_ =~ /^\s*$/ || $_ =~ /^\x23/);
next if($_ =~ /^cycbuffupdate:/ || $_ =~ /^refreshinterval:/);
Technical Details
Message-ID:
<79etuk$2spm$1@newssvr04-int.news.prodigy.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <79etuk$2spm$1@newssvr04-int.news.prodigy.com> Subject: cnfsstat - continuation bugfix Date: Fri, 05 Feb 1999 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 440995389 X-Auth-User: 000000000/ca4ef265193e73f8 X-Post-Time: 5 Feb 1999 14:07:16 GMT Organization: TMR Associates, Schenectady NY X-Problems-To: abuse@prodigy.net Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com