summaryrefslogtreecommitdiff
path: root/tests/new-exp.right
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2019-01-07 09:27:52 -0500
committerChet Ramey <chet.ramey@case.edu>2019-01-07 09:27:52 -0500
commitd233b485e83c3a784b803fb894280773f16f2deb (patch)
tree16d51f3ccca2d4ad2d8f2da564d68ca848de595b /tests/new-exp.right
parent64447609994bfddeef1061948022c074093e9a9f (diff)
downloadbash-d233b485e83c3a784b803fb894280773f16f2deb.tar.gz
bash-5.0 distribution sources and documentationbash-5.0
Diffstat (limited to 'tests/new-exp.right')
-rw-r--r--tests/new-exp.right58
1 files changed, 41 insertions, 17 deletions
diff --git a/tests/new-exp.right b/tests/new-exp.right
index 9913fbd6..c0f78fbb 100644
--- a/tests/new-exp.right
+++ b/tests/new-exp.right
@@ -3,7 +3,7 @@ argv[1] = <foo>
argv[1] = </usr/homes/chet>
argv[1] = </usr/homes/chet>
argv[1] = </usr/homes/chet>
-./new-exp.tests: line 24: HOME: }: syntax error: operand expected (error token is "}")
+./new-exp.tests: line 28: HOME: }: syntax error: operand expected (error token is "}")
unset
argv[1] = </usr/homes/chet>
argv[1] = </usr/homes/chet>
@@ -66,8 +66,8 @@ argv[4] = <d>
argv[1] = <a>
argv[2] = <b c>
argv[3] = <d>
-./new-exp.tests: line 180: ABX: unbound variable
-./new-exp.tests: line 184: $6: cannot assign in this way
+./new-exp.tests: line 184: ABX: unbound variable
+./new-exp.tests: line 188: $6: cannot assign in this way
argv[1] = <xxcde>
argv[1] = <axxde>
argv[1] = <abxyz>
@@ -169,14 +169,14 @@ lines.
This-string-has-multiple-lines.
this is a test of proc subst
this is test 2
-./new-exp2.sub: line 31: /tmp/bashtmp.x*: No such file or directory
-./new-exp2.sub: line 35: /tmp/redir-notthere: No such file or directory
+a
+./new-exp2.sub: line 42: /tmp/redir-notthere: No such file or directory
1
-./new-exp2.sub: line 42: 1111111111111111111111: command not found
+./new-exp2.sub: line 49: 1111111111111111111111: command not found
argv[1] = <6>
-./new-exp.tests: line 285: ${#:}: bad substitution
+./new-exp.tests: line 289: ${#:}: bad substitution
argv[1] = <'>
argv[1] = <">
argv[1] = <"hello">
@@ -411,13 +411,13 @@ argv[6] = <w>
argv[7] = <x>
argv[8] = <y>
argv[9] = <z>
-./new-exp.tests: line 503: $9: unbound variable
-./new-exp.tests: line 504: 9: unbound variable
-./new-exp.tests: line 505: UNSET: unbound variable
-./new-exp.tests: line 506: UNSET: unbound variable
-./new-exp.tests: line 507: UNSET: unbound variable
-./new-exp.tests: line 508: UNSET: unbound variable
+./new-exp.tests: line 507: $9: unbound variable
+./new-exp.tests: line 508: 9: unbound variable
./new-exp.tests: line 509: UNSET: unbound variable
+./new-exp.tests: line 510: UNSET: unbound variable
+./new-exp.tests: line 511: UNSET: unbound variable
+./new-exp.tests: line 512: UNSET: unbound variable
+./new-exp.tests: line 513: UNSET: unbound variable
argv[1] = <5>
argv[1] = <#>
argv[1] = <#>
@@ -464,7 +464,7 @@ Case05---3---A:B:C---
Case06---1---A B C::---
Case07---3---A:B:C---
Case08---3---A:B:C---
-./new-exp.tests: line 529: ${$(($#-1))}: bad substitution
+./new-exp.tests: line 533: ${$(($#-1))}: bad substitution
argv[1] = <a>
argv[2] = <b>
argv[3] = <c>
@@ -481,7 +481,7 @@ argv[1] = <a>
argv[1] = <a>
argv[2] = <b>
argv[1] = <>
-./new-exp.tests: line 548: $(($# - 2)): substring expression < 0
+./new-exp.tests: line 552: $(($# - 2)): substring expression < 0
argv[1] = <bin>
argv[2] = <bin>
argv[3] = <ucb>
@@ -624,7 +624,7 @@ c Sub = 0 2 4 8
<'ab cd'>
<'4'> <'ab cd'>
<>
-argv[1] = <host(2)[4.4]$ >
+argv[1] = <host(2)[5.0]$ >
<
>
<' \t\n'>
@@ -643,6 +643,30 @@ ir
a b c d e
5
a5b
+i
+declare -i foo
+A
+declare -A foo
+abcxxxdef
+abcådef
+ḅć
+Ã¥
+prependḅć
+Ã¥append
+prependå
+ḅćappend
+Ã¥
+ḅć
+ḅć
+ḅć
+Ã¥
+Ã¥
+Ã¥
+ḅć
+Ã¥
+Ã¥
+ḅć
+ḅć
argv[1] = </>
argv[1] = </>
-./new-exp.tests: line 608: ABXD: parameter unset
+./new-exp.tests: line 615: ABXD: parameter unset