Add a test case for options.c revision 1.26.

This commit is contained in:
stefanf 2008-03-22 14:07:49 +00:00
parent d52b1cf43e
commit 0f834356e3
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,12 @@
# $FreeBSD$
set -- -abc
getopts "ab:" OPTION
echo ${OPTION}
set -- -ab
getopts "ab:" OPTION
echo ${OPTION}
shift 1
getopts "ab:" OPTION
echo ${OPTION}

View File

@ -0,0 +1,3 @@
a
a
?