#!/builddir/build/BUILD/plan9port-0_20260711git.337c6ac-build/plan9port-337c6acbfed51d8d9f08598c6cd398f53abcca7d/bin/rc

. 9.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 | sprog $spellflags
