Blob
1 #!/usr/local/plan9/bin/rc3 . 9.rc4 spellflags=()5 deroffargs=()6 fflag=''7 for(x){8 switch($x){9 case -[abcvx]10 spellflags=($spellflags $x)11 case -f12 fflag=$x13 case *14 if(~ $fflag -f) {15 spellflags=($spellflags -f $x)16 fflag=''17 }18 if not deroffargs=($deroffargs $x)19 }20 }22 deroff -w $deroffargs | sort -u | sprog $spellflags