]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - tools/regression/bin/sh/builtins/getopts1.0
Copy head to stable/8 as part of 8.0 Release cycle.
[FreeBSD/stable/8.git] / tools / regression / bin / sh / builtins / getopts1.0
1 # $FreeBSD$
2 set -- -abc
3 getopts "ab:" OPTION
4 echo ${OPTION}
5
6 set -- -ab
7 getopts "ab:" OPTION
8 echo ${OPTION}
9
10 shift 1
11 getopts "ab:" OPTION
12 echo ${OPTION}