summaryrefslogtreecommitdiffstats
path: root/tests/nameref2.sub
blob: 547cc199cb64e777360190fb894ab94019efdcf3 (plain)
1
2
3
4
5
6
7
# test readonly nameref variables
# ksh93 allows this but not typeset -rn ref=foo?
typeset -n ref=foo
readonly ref
foo=4

echo $ref