1# $FreeBSD: head/bin/sh/tests/builtins/getopts3.0 265616 2014-05-07 21:45:25Z jilles $ 2 3shift $# 4getopts x opt 5r=$? 6[ "$r" != 0 ] && [ "$OPTIND" = 1 ] 7