Add a test case for options.c revision 1.26.

This commit is contained in:
Stefan Farfeleder 2008-03-22 14:07:49 +00:00
parent f9ec075e88
commit c20ee5ab6d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177498
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
?