]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/getopts10.sub
Bash-4.4 distribution sources and documentation
[thirdparty/bash.git] / tests / getopts10.sub
CommitLineData
a0c0a00f
CR
1set -- -a bb
2readonly OPTARG
3getopts :x x
4
5echo OPTARG = $OPTARG x = $x
6
7getopts x x
8echo ${OPTARG-unset} x = $x
9
10typeset -r RO=foo
11typeset -n OPTARG=RO
12
13getopts :x x
14typeset -p RO
15
16getopts x x
17typeset -p RO