Annotation of researchv8dc/cmd/spell/binspell, revision 1.1

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:        -x)     X="$X -x" ;;
        !            18:        *)      F="$F $A"
        !            19:        esac
        !            20: done
        !            21: 
        !            22: if test -w ${H_SPELL=/usr/dict/spellhist}
        !            23: then C="$C | tee -a $H_SPELL"
        !            24: fi
        !            25: if test -r ${A_SPELL=$HOME/lib/spelldict}
        !            26: then C="$C | fgrep -x -v -f $A_SPELL"
        !            27: fi
        !            28: 
        !            29: deroff -w $F |
        !            30:  $P_SPELL ${S_SPELL-/usr/dict/hstop} 1 $X |
        !            31:  $P_SPELL ${D_SPELL-/usr/dict/hlista} ${V_SPELL=/dev/null} $X $V |
        !            32:  eval $C
        !            33: 
        !            34: case $V in
        !            35: *-v*)  sort -u +1f +1 $V_SPELL
        !            36: esac

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.