summaryrefslogtreecommitdiff
path: root/tests/array.right
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2020-09-09 15:25:32 -0400
committerChet Ramey <chet.ramey@case.edu>2020-09-09 15:25:32 -0400
commit3eb0018e75b74bb886df7fba4b1712529ce7258f (patch)
tree13b53713ef8f483a82295324e314da48b59c9346 /tests/array.right
parent712f80b0a49c3a0227d0b52bff5e0b763747697e (diff)
downloadbash-5.1-beta.tar.gz
bash-5.1 beta releasebash-5.1-beta
Diffstat (limited to 'tests/array.right')
-rw-r--r--tests/array.right7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/array.right b/tests/array.right
index c46ffb5e..2d1c51db 100644
--- a/tests/array.right
+++ b/tests/array.right
@@ -203,6 +203,7 @@ e
'b
b c
$0
+declare -a A=([0]="X=a" [1]="b")
t
[3]=abcde r s t u v
e
@@ -756,3 +757,9 @@ declare -A A=(["*"]="X" ["@"]="X" )
./array27.sub: line 69: A[*]: bad array subscript
./array27.sub: line 69: A[@]: bad array subscript
declare -A A
+declare -a bug4=([0]="" [1]="5" [2]="" [3]="1" [4]="")
+declare -a bug=([0]="" [1]="5" [2]="" [3]="1" [4]="")
+declare -a bug2=([0]="")
+declare -a bug3=([0]="" [1]="5" [2]="" [3]="1" [4]="")
+declare -a not_bug=([0]="no" [1]="nulls")
+declare -a workaround=([0]="")