Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830713); site hwcs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!mcvax!ukc!edcaad!hwcs!chris From: chris@hwcs.UUCP (Chris Miller) Newsgroups: net.bugs.4bsd Subject: /usr/lib/makewhatis bug Message-ID: <248@hwcs.UUCP> Date: Thu, 1-Nov-84 09:13:56 EST Article-I.D.: hwcs.248 Posted: Thu Nov 1 09:13:56 1984 Date-Received: Sat, 3-Nov-84 08:02:59 EST Organization: Computer Sci., Heriot-Watt U., Scotland Lines: 41 Description: We have encountered problems with "ed" failing (message is '?TMP'), presumably because the file /tmp/whatis is too large. This results in the whole of /usr/lib/whatis being corrupted whenever "catman" is run. Repeat-By: Expand your manual with enough new sections (number unknown!) and type "/etc/catman -w" as a sufficiently privileged user. Fix: Replace the use of "ed" in /usr/src/usr.lib/makewhatis.sh (on 4.2bsd, wherever appropriate on earlier releases) by "sed". (This also runs noticeably faster). We have also added commands to remove nroff font- and size-change commands embedded in header lines. Diff listing follows: 9,17c9,16 < ed - /tmp/whatis <<\! < g/\\-/s//-/ < g/\\\*-/s//-/ < g/ VAX-11/s/// < 1,$s/.TH [^ ]* \([^ ]*\).* \([^-]*\)/\2(\1) / < g/ /s// /g < w /tmp/whatis2 < q < ! --- > sed /tmp/whatis2 \ > -e 's/\\-/-/' \ > -e 's/\\\*-/-/' \ > -e 's/ VAX-11//' \ > -e 's/\\f[PRIB0123]//g' \ > -e 's/\\s[-+0-9]*//g' \ > -e 's/.TH [^ ]* \([^ ]*\).* \([^-]*\)/\2(\1) /' \ > -e 's/ / /g' -- Chris Miller Department of Computer Science Heriot-Watt University ...!ukc!{edcaad,west44}!hwcs