summaryrefslogtreecommitdiffstats
path: root/tests/appendop1.sub
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/appendop1.sub15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/appendop1.sub b/tests/appendop1.sub
new file mode 100644
index 0000000..7101d0c
--- /dev/null
+++ b/tests/appendop1.sub
@@ -0,0 +1,15 @@
+typeset -A foo=([one]=bar [two]=baz [three]=quux)
+typeset -p foo
+
+foo+=zero
+typeset -p foo
+
+foo+=([four]=four)
+typeset -p foo
+
+typeset -ia iarr=(2 2 3)
+iarr+=1
+typeset -p iarr
+
+iarr+=(4 5 6)
+typeset -p iarr