Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git] / tests / builtins.right
index 38f196a..bafc53f 100644 (file)
@@ -117,6 +117,23 @@ three - OK
 0
 four - OK
 0
+abc
+def
+ghi
+after
+one.1 subshell
+two.1 subshell
+three.1 subshell
+four.1 subshell
+one.2 subshell
+two.2 subshell
+three.2 subshell
+four.2 subshell
+x29 - done
+abc
+def
+ghi
+ok
 AVAR
 foo
 foo
@@ -127,11 +144,11 @@ AVAR
 foo
 declare -x foo=""
 declare -x FOO="\$\$"
-./builtins.tests: line 210: declare: FOO: not found
+./builtins.tests: line 213: declare: FOO: not found
 declare -x FOO="\$\$"
 ok
 ok
-./builtins.tests: line 242: kill: 4096: invalid signal specification
+./builtins.tests: line 245: kill: 4096: invalid signal specification
 1
 a\n\n\nb
 a
@@ -141,4 +158,14 @@ b
 before: f = 4
 inside
 after: f = 8 bar = 4
-./builtins.tests: line 254: exit: status: numeric argument required
+./builtins4.sub: line 2: declare: c: not found
+./builtins4.sub: line 5: declare: d: not found
+declare -a c='([0]="4")'
+declare -A c='([0]="4" )'
+declare -a c='([0]="1" [1]="2" [2]="3")'
+declare -A c='([one]="1" [two]="2" [three]="3" )'
+declare -a c='([0]="1" [1]="2" [2]="3")'
+declare -a c='([0]="1" [1]="2" [2]="3")'
+unset
+unset
+./builtins.tests: line 260: exit: status: numeric argument required