Add a test case for options.c revision 1.26.
This commit is contained in:
parent
d52b1cf43e
commit
0f834356e3
12
tools/regression/bin/sh/builtins/getopts1.0
Normal file
12
tools/regression/bin/sh/builtins/getopts1.0
Normal 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}
|
3
tools/regression/bin/sh/builtins/getopts1.0.stdout
Normal file
3
tools/regression/bin/sh/builtins/getopts1.0.stdout
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
a
|
||||||
|
a
|
||||||
|
?
|
Loading…
x
Reference in New Issue
Block a user