Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!rochester!ritcv!rocksvax!rocksanne!sunybcs!daemen!boyce From: boyce@daemen.UUCP Newsgroups: net.bugs.4bsd Subject: spell fix Message-ID: <150@daemen.uucp> Date: Fri, 7-Mar-86 17:08:27 EST Article-I.D.: daemen.150 Posted: Fri Mar 7 17:08:27 1986 Date-Received: Tue, 11-Mar-86 01:16:44 EST Organization: Daemen College, Buffalo, NY Lines: 42 Keywords: spell, stop file, fixed Summary: spell says words in "stop" file are incorrect Index: usr.bin/spell/spell.sh 4.2BSD Description: Words that are present in the spell "stop" file, i.e. visable, acter, will be included in the misspelled words. Repeat-By: Use spell on a file that contains many of these words and rack your brains over why it complains. Fix: The second arguement to /usr/lib/spell is a file to save words that it knows about. It makes little sense (at least to me, correct me if I'm wrong) to save the correct words and add them to incorrect words. To fix the problem I don't include $T into the sorting of misspelled words. *** spell.sh.old Fri Mar 7 15:55:23 1986 --- spell.sh Fri Mar 7 16:28:58 1986 *************** *** 29,35 case $H in /dev/null) deroff -w $F | sort -u | /usr/lib/spell $S $T | /usr/lib/spell ${D-/usr/dict/hlista} $V $B | ! sort -u +0f +0 - $T ;; *) deroff -w $F | sort -u | /usr/lib/spell $S $T | /usr/lib/spell ${D-/usr/dict/hlista} $V $B | sort -u +0f +0 - $T | tee -a $H --- 29,35 ----- case $H in /dev/null) deroff -w $F | sort -u | /usr/lib/spell $S $T | /usr/lib/spell ${D-/usr/dict/hlista} $V $B | ! sort -u +0f +0 - ;; *) deroff -w $F | sort -u | /usr/lib/spell $S $T | /usr/lib/spell ${D-/usr/dict/hlista} $V $B | sort -u +0f +0 - $T | tee -a $H -- Doug Boyce Daemen College, Buffalo NY UUCP : decvax!sunybcs!daemen!boyce or ihnp4!kitty!daemen!boyce ARPA : boyce%buffalo@csnet-relay "What's the point spread on W.W. III?" [R. Reagan]