1# $FreeBSD$ 2 3args='-ab' 4getopts ab opt $args 5echo $?:$opt:$OPTARG 6for dummy in dummy1 dummy2; do 7 getopts ab opt $args 8 echo $?:$opt:$OPTARG 9done 10