1251607Sdim# $FreeBSD: head/bin/sh/tests/builtins/getopts7.0 265844 2014-05-10 17:42:21Z jilles $ 2251607Sdim 3251607Sdimset -- -x 4251607Sdimgetopts :x: var 5251607Sdimr=$? 6251607Sdim[ r != 0 ] && [ "$OPTIND" = 2 ] 7251607Sdim