spell fix

boyce at daemen.UUCP boyce at daemen.UUCP
Sat Mar 8 08:08:27 AEST 1986


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 at csnet-relay
	"What's the point spread on W.W. III?" [R. Reagan]



More information about the Comp.bugs.4bsd.ucb-fixes mailing list