/usr/lib/makewhatis fix (catman(8))
Bruce Nemnich
bruce at godot.UUCP
Sat Jun 30 14:50:33 AEST 1984
I had a problem here with with /usr/lib/makewhatis (invoked by
catman(8)); ed would run out of buffer space and bomb. Just change the
ed script to a sed script (I also rm the other /tmp file it creates):
1c1
< rm -f /tmp/whatis /tmp/whatis$$
---
> rm -f /tmp/whatis /tmp/whatis2 /tmp/whatis$$
9,17c9,14
< ed - /tmp/whatis <<\!
< g/\\-/s//-/
< g/\\\*-/s//-/
< g/ VAX-11/s///
< 1,$s/.TH [^ ]* \([^ ]*\).* \([^-]*\)/\2(\1) /
< g/ /s// /g
< w /tmp/whatis2
< q
< !
---
> sed -e 's/\\-/-/' \
> -e 's/\\\*-/-/' \
> -e 's/ VAX-11//' \
> -e 's/.TH [^ ]* \([^ ]*\).* \([^-]*\)/\2(\1) /' \
> -e 's/ / /g' \
> /tmp/whatis >/tmp/whatis2
21c18
< rm -f /tmp/whatis /tmp/whatis$$
---
> rm -f /tmp/whatis /tmp/whatis2 /tmp/whatis$$
--
--Bruce Nemnich, Thinking Machines Corporation, Waltham, MA
{astrovax,cca,escher,ihnp4,ima,mit-eddie,...}!godot!bruce, BJN at MIT-MC.ARPA
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list