plan9fox/sys/src/cmd/spell/spell.rc
2011-04-18 01:59:36 +00:00

22 lines
312 B
Bash
Executable file

#!/bin/rc
spellflags=()
deroffargs=()
fflag=''
for(x){
switch($x){
case -[abcvx]
spellflags=($spellflags $x)
case -f
fflag=$x
case *
if(~ $fflag -f) {
spellflags=($spellflags -f $x)
fflag=''
}
if not deroffargs=($deroffargs $x)
}
}
deroff -w $deroffargs | sort -u | aux/sprog $spellflags