]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/getopts8.sub
Bash-5.2-rc4 release
[thirdparty/bash.git] / tests / getopts8.sub
CommitLineData
a0c0a00f
CR
1f()
2{
3 typeset OPTIND=1
4 typeset opt
5
6 while getopts ":abcxyz" opt
7 do
8 echo opt: "$opt"
9 if [[ $opt = y ]]; then f -abc ; fi
10 done
11}
12
13f -xyz