|
|
1.1 ! root 1: #! /bin/sh ! 2: # V, X flags, F files, C commands for auxiliary list and history ! 3: # D_SPELL dictionary, H_SPELL history, S_SPELL stoplist, P_SPELL program ! 4: # V_SPELL -v file, A_SPELL auxiliary list ! 5: ! 6: F= V= X= C="sort -u +0f +0" ! 7: P_SPELL=${P_SPELL-/usr/lib/spell} ! 8: ! 9: for A ! 10: do ! 11: case $A in ! 12: -v) V_SPELL=${V_SPELL-/tmp/spell$$} ! 13: trap "rm -f $V_SPELL" 0 1 2 13 15 ! 14: V="-v" ;; ! 15: -b) D_SPELL=${D_SPELL-/usr/dict/hlistb} ! 16: X="$X -b" ;; ! 17: # +?*) if test ! -r ${A_SPELL=`expr $A : '+\(.*\)'`} #WWB compatibility ! 18: # then echo spell: cannot open $A_SPELL; exit 1 ! 19: # fi ;; ! 20: -x) X="$X -x" ;; ! 21: *) F="$F $A" ! 22: esac ! 23: done ! 24: ! 25: if test -w ${H_SPELL=/usr/dict/spellhist} ! 26: then C="$C | tee -a $H_SPELL" ! 27: fi ! 28: if test -r ${A_SPELL=$HOME/lib/spelldict} ! 29: then C="$C | fgrep -x -v -f $A_SPELL" ! 30: fi ! 31: ! 32: deroff -w $F | ! 33: $P_SPELL ${S_SPELL-/usr/dict/hstop} 1 $X | ! 34: $P_SPELL ${D_SPELL-/usr/dict/hlista} ${V_SPELL=/dev/null} $X $V | ! 35: eval $C ! 36: ! 37: case $V in ! 38: *-v*) sort -u +1f +1 $V_SPELL ! 39: esac
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.