i-bash/tests/getopts10.sub

18 lines
208 B
Text
Raw Permalink Normal View History

set -- -a bb
readonly OPTARG
getopts :x x
echo OPTARG = $OPTARG x = $x
getopts x x
echo ${OPTARG-unset} x = $x
typeset -r RO=foo
typeset -n OPTARG=RO
getopts :x x
typeset -p RO
getopts x x
typeset -p RO