Date: Tue, 16 Jan 2001 20:41:48 -0800 (PST) From: Matt Dillon <dillon@earth.backplane.com> To: freebsd-hackers@freebsd.org Subject: Possible bug in /usr/bin/makewhatis. Message-ID: <200101170441.f0H4fmw45025@earth.backplane.com>
next in thread | raw e-mail | index | archive | help
I was doing some installworlds and got a bunch of 'gzcat: Broken pipe' errors at the very end when it was doing 'makewhatis' on various manual directories. I believe the problem is related to the makewhatis perl script closing the input descriptor before draining all the input, but not being a perl progammer I can't tell for sure. The place where the perl program appeared to be closing the input prematurely is here: # ``man'' style pages # &&: it takes you only half the user time, regexp is slow!!! if (/^\.SH/ && /^\.SH[ \t]+["]?($section_name)["]?/) { #while(<F>) { last unless /^\./ } # Skip #chop; $list = $_; while(<F>) { last if /^\.SH[ \t]/; <<<<<<<<<<<<<<<<<<<<< here chop; s/^\.IX\s.*//; # delete perlpod garbage s/^\.[A-Z]+[ ]+[0-9]+$//; # delete commands s/^\.[A-Za-z]+[ \t]*//; # delete commands s/^\.\\".*$//; #" delete comments s/^[ \t]+//; if ($_) { $list .= $_; $list .= ' '; } } &out($list); close F; return 1; <<<<<<<<<<<< closing here ... Could someone take a look at that? There might be other places as well. Thanks! -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101170441.f0H4fmw45025>