getopts1.0 revision 177498
1177498Sstefanf# $FreeBSD: head/tools/regression/bin/sh/builtins/getopts1.0 177498 2008-03-22 14:07:49Z stefanf $ 2177498Sstefanfset -- -abc 3177498Sstefanfgetopts "ab:" OPTION 4177498Sstefanfecho ${OPTION} 5177498Sstefanf 6177498Sstefanfset -- -ab 7177498Sstefanfgetopts "ab:" OPTION 8177498Sstefanfecho ${OPTION} 9177498Sstefanf 10177498Sstefanfshift 1 11177498Sstefanfgetopts "ab:" OPTION 12177498Sstefanfecho ${OPTION} 13