|
|
1.1 root 1: P_SPELL=./spellprog
2: S_SPELL=./hstop
3: D_SPELL=./hlista
4: H_SPELL=./spellhist
5: export P_SPELL D_SPELL S_SPELL H_SPELL
6: trap "rm -f spellhist testdata; exit" 0 1 2 13 15
7: rm -f spellhist
8: cat >testdata <<!
9: Colden
10: center
11: centre
12: underhanded
13: !
14: echo output should be \"centre\" \"Colden\"
15: ./spell.sh <testdata
16: echo output should be empty
17: A_APELL=testdata ./spell.sh <testdata
18: cat spellhist 2>/dev/null
19: >spellhist
20: echo output should be \"centre\" \"Colden\" \"+under+ed underhanded\"
21: ./spell.sh -v <testdata
22: echo output should be \"centre\" \"Colden\"
23: cat spellhist
24: echo output should be \"center\" \"Colden\"
25: D_SPELL=hlistb ./spell.sh -b <testdata
26: echo output should be \"=infer\" \"=infe\" \"=inf\" \"=infer\"
27: ./spell.sh -x <<!
28: infer
29: !
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.