a b=x rest: y z a b=val c rest: a c rest: -b unknown x a rest: missing arg for b rest: rest: - rest: b= rest: getopts: illegal option -- z o=? OPTARG=unset getopts: option requires an argument -- b o=? OPTARG=unset OPTIND=3 end status=1 o=? [status 0]