summaryrefslogtreecommitdiff
path: root/tests/array23.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/array23.sub')
-rw-r--r--tests/array23.sub6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/array23.sub b/tests/array23.sub
index a762aadb..bd64fe1f 100644
--- a/tests/array23.sub
+++ b/tests/array23.sub
@@ -20,3 +20,9 @@ typeset -a a
echo $((1+a[$index]))
echo $((1+a[\$index]))
echo "1+${a[$index]}"
+
+# intermediate problems discovered while bash-5.0 was in testing
+a=0
+echo $(( a[a[0]] ))
+echo ${a[a[a[0]]]}
+echo $(( a[a[a[0]]] ))