init version.
[bush.git] / tests / 6.cmd / getopts / getopts8.sub
blob6aeeca6f50546575ca848384374df12d1cddc257
1 f()
3         typeset OPTIND=1
4         typeset opt
6         while getopts ":abcxyz" opt
7         do
8                 echo opt: "$opt"
9                 if [[ $opt = y ]]; then f -abc ; fi
10         done
13 f -xyz