1265616Sjilles# $FreeBSD: head/bin/sh/tests/builtins/getopts3.0 265616 2014-05-07 21:45:25Z jilles $ 2265616Sjilles 3265616Sjillesshift $# 4265616Sjillesgetopts x opt 5265616Sjillesr=$? 6265616Sjilles[ "$r" != 0 ] && [ "$OPTIND" = 1 ] 7