Revision dcbde7897a0b4c64b422f2bebd3c10b9a38e0972 authored by Ken Thompson on 13 May 1979, 22:37:21 UTC, committed by Ken Thompson on 13 May 1979, 22:37:21 UTC
Work on file usr/sys/h/pk.p Co-Authored-By: Dennis Ritchie <dmr@research.uucp> Synthesized-from: v7
1 parent 6664aa8
spell
: B flags, D dictionary, F files, H history, S stop, V data for -v
H=${H-/usr/dict/spellhist}
T=/tmp/spell.$$
V=/dev/null
F= B=
trap "rm -f $T*; exit" 0 1 2 13 15
for A in $*
do
case $A in
-v) B="$B -v"
V=${T}a ;;
-a) ;;
-b) D=${D-/usr/dict/hlistb}
B="$B -b" ;;
*) F="$F $A"
esac
done
deroff -w $F |\
sort -u |\
/usr/lib/spell ${S-/usr/dict/hstop} $T |\
/usr/lib/spell ${D-/usr/dict/hlista} $V $B |\
sort -u +0f +0 - $T |\
tee -a $H
who am i >>$H 2>/dev/null
case $V in
/dev/null) exit
esac
sed '/^\./d' $V | sort -u +1f +0
Computing file changes ...