mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-11 12:40:42 +02:00
Bash-5.3-alpha release
This commit is contained in:
+67
-35
@@ -51,6 +51,7 @@
|
||||
1
|
||||
1
|
||||
32
|
||||
32
|
||||
4
|
||||
20
|
||||
1,i+=2
|
||||
@@ -60,7 +61,7 @@
|
||||
1,i+=2
|
||||
30
|
||||
1,j+=2
|
||||
./arith.tests: line 127: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2")
|
||||
./arith.tests: line 129: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2")
|
||||
20
|
||||
6
|
||||
6,5,3
|
||||
@@ -70,6 +71,8 @@
|
||||
127
|
||||
36
|
||||
40
|
||||
40
|
||||
40
|
||||
10
|
||||
10
|
||||
10
|
||||
@@ -80,16 +83,18 @@
|
||||
36
|
||||
62
|
||||
63
|
||||
./arith.tests: line 162: 3425#56: invalid arithmetic base (error token is "3425#56")
|
||||
./arith.tests: line 165: 2#: invalid integer constant (error token is "2#")
|
||||
./arith.tests: line 168: 7 = 43 : attempted assignment to non-variable (error token is "= 43 ")
|
||||
./arith.tests: line 169: 2#44: value too great for base (error token is "2#44")
|
||||
./arith.tests: line 170: 44 / 0 : division by 0 (error token is "0 ")
|
||||
./arith.tests: line 171: let: jv += $iv: syntax error: operand expected (error token is "$iv")
|
||||
./arith.tests: line 172: jv += $iv : syntax error: operand expected (error token is "$iv ")
|
||||
./arith.tests: line 173: let: rv = 7 + (43 * 6: missing `)' (error token is "6")
|
||||
./arith.tests: line 177: 0#4: invalid number (error token is "0#4")
|
||||
./arith.tests: line 178: 2#110#11: invalid number (error token is "2#110#11")
|
||||
./arith.tests: line 168: 3425#56: invalid arithmetic base (error token is "3425#56")
|
||||
./arith.tests: line 171: 2#: invalid integer constant (error token is "2#")
|
||||
./arith.tests: line 174: 7 = 43 : attempted assignment to non-variable (error token is "= 43 ")
|
||||
./arith.tests: line 175: 2#44: value too great for base (error token is "2#44")
|
||||
./arith.tests: line 176: 44 / 0 : division by 0 (error token is "0 ")
|
||||
./arith.tests: line 177: let: jv += $iv: arithmetic syntax error: operand expected (error token is "$iv")
|
||||
./arith.tests: line 178: jv += $iv : arithmetic syntax error: operand expected (error token is "$iv ")
|
||||
./arith.tests: line 179: let: rv = 7 + (43 * 6: missing `)' (error token is "6")
|
||||
./arith.tests: line 182: b / 0 : division by 0 (error token is "0 ")
|
||||
./arith.tests: line 183: b /= 0 : division by 0 (error token is "0 ")
|
||||
./arith.tests: line 188: 0#4: invalid number (error token is "0#4")
|
||||
./arith.tests: line 189: 2#110#11: invalid number (error token is "2#110#11")
|
||||
abc
|
||||
def
|
||||
ghi
|
||||
@@ -97,15 +102,15 @@ ok
|
||||
6
|
||||
1
|
||||
0
|
||||
./arith.tests: line 196: 4 + : syntax error: operand expected (error token is "+ ")
|
||||
./arith.tests: line 207: 4 + : arithmetic syntax error: operand expected (error token is "+ ")
|
||||
16
|
||||
./arith.tests: line 201: 4 ? : 3 + 5 : expression expected (error token is ": 3 + 5 ")
|
||||
./arith.tests: line 202: 1 ? 20 : `:' expected for conditional expression (error token is "20 ")
|
||||
./arith.tests: line 203: 4 ? 20 : : expression expected (error token is ": ")
|
||||
./arith.tests: line 212: 4 ? : 3 + 5 : expression expected (error token is ": 3 + 5 ")
|
||||
./arith.tests: line 213: 1 ? 20 : `:' expected for conditional expression (error token is "20 ")
|
||||
./arith.tests: line 214: 4 ? 20 : : expression expected (error token is ": ")
|
||||
9
|
||||
./arith.tests: line 209: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ")
|
||||
./arith.tests: line 220: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ")
|
||||
9
|
||||
./arith.tests: line 212: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ")
|
||||
./arith.tests: line 223: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ")
|
||||
9
|
||||
0
|
||||
9
|
||||
@@ -121,6 +126,7 @@ ok
|
||||
131072
|
||||
2147483647
|
||||
1
|
||||
./arith.tests: line 255: 2**-1 : exponent less than 0 (error token is "1 ")
|
||||
4
|
||||
4
|
||||
5
|
||||
@@ -131,22 +137,23 @@ ok
|
||||
4
|
||||
4
|
||||
7
|
||||
./arith.tests: line 260: 7-- : syntax error: operand expected (error token is "- ")
|
||||
./arith.tests: line 262: --x=7 : attempted assignment to non-variable (error token is "=7 ")
|
||||
./arith.tests: line 263: ++x=7 : attempted assignment to non-variable (error token is "=7 ")
|
||||
./arith.tests: line 265: x++=7 : attempted assignment to non-variable (error token is "=7 ")
|
||||
./arith.tests: line 266: x--=7 : attempted assignment to non-variable (error token is "=7 ")
|
||||
./arith.tests: line 274: 7-- : arithmetic syntax error: operand expected (error token is "- ")
|
||||
./arith.tests: line 276: --x=7 : attempted assignment to non-variable (error token is "=7 ")
|
||||
./arith.tests: line 277: ++x=7 : attempted assignment to non-variable (error token is "=7 ")
|
||||
./arith.tests: line 279: x++=7 : attempted assignment to non-variable (error token is "=7 ")
|
||||
./arith.tests: line 280: x--=7 : attempted assignment to non-variable (error token is "=7 ")
|
||||
4
|
||||
7
|
||||
-7
|
||||
7
|
||||
7
|
||||
./arith.tests: line 292: --x++ : ++: assignment requires lvalue (error token is "++ ")
|
||||
2
|
||||
2
|
||||
./arith1.sub: line 15: 4-- : syntax error: operand expected (error token is "- ")
|
||||
./arith1.sub: line 16: 4++ : syntax error: operand expected (error token is "+ ")
|
||||
./arith1.sub: line 17: 4 -- : syntax error: operand expected (error token is "- ")
|
||||
./arith1.sub: line 18: 4 ++ : syntax error: operand expected (error token is "+ ")
|
||||
./arith1.sub: line 15: 4-- : arithmetic syntax error: operand expected (error token is "- ")
|
||||
./arith1.sub: line 16: 4++ : arithmetic syntax error: operand expected (error token is "+ ")
|
||||
./arith1.sub: line 17: 4 -- : arithmetic syntax error: operand expected (error token is "- ")
|
||||
./arith1.sub: line 18: 4 ++ : arithmetic syntax error: operand expected (error token is "+ ")
|
||||
1
|
||||
2
|
||||
1
|
||||
@@ -161,10 +168,10 @@ ok
|
||||
2
|
||||
-2
|
||||
1
|
||||
./arith1.sub: line 48: ((: ++ : syntax error: operand expected (error token is "+ ")
|
||||
./arith1.sub: line 48: ((: ++ : arithmetic syntax error: operand expected (error token is "+ ")
|
||||
7
|
||||
7
|
||||
./arith1.sub: line 51: ((: -- : syntax error: operand expected (error token is "- ")
|
||||
./arith1.sub: line 51: ((: -- : arithmetic syntax error: operand expected (error token is "- ")
|
||||
7
|
||||
7
|
||||
7
|
||||
@@ -183,10 +190,10 @@ ok
|
||||
1
|
||||
4
|
||||
0
|
||||
./arith2.sub: line 46: ((: -- : syntax error: operand expected (error token is "- ")
|
||||
./arith2.sub: line 46: ((: -- : arithmetic syntax error: operand expected (error token is "- ")
|
||||
-7
|
||||
-7
|
||||
./arith2.sub: line 50: ((: ++ : syntax error: operand expected (error token is "+ ")
|
||||
./arith2.sub: line 50: ((: ++ : arithmetic syntax error: operand expected (error token is "+ ")
|
||||
7
|
||||
7
|
||||
-7
|
||||
@@ -249,15 +256,40 @@ efg
|
||||
0
|
||||
0
|
||||
0
|
||||
./arith9.sub: line 4: a: unbound variable
|
||||
./arith9.sub: line 5: a: unbound variable
|
||||
0
|
||||
after 3 0
|
||||
0
|
||||
after 4 0
|
||||
./arith9.sub: line 14: b: expression recursion level exceeded (error token is "b")
|
||||
+ var=42
|
||||
+ echo 42
|
||||
42
|
||||
+ echo 0
|
||||
0
|
||||
+ echo 0
|
||||
0
|
||||
+ echo 0
|
||||
0
|
||||
+ (( 42 ))
|
||||
+ echo 0
|
||||
0
|
||||
+ (( ))
|
||||
+ echo 1
|
||||
1
|
||||
+ set +x
|
||||
./arith9.sub: line 37: 4+: arithmetic syntax error: operand expected (error token is "+")
|
||||
x = 4+ y =
|
||||
8 12
|
||||
./arith.tests: line 310: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ")
|
||||
./arith.tests: line 314: a b: syntax error in expression (error token is "b")
|
||||
./arith.tests: line 315: ((: a b: syntax error in expression (error token is "b")
|
||||
./arith.tests: line 332: ((: x=9 y=41 : arithmetic syntax error in expression (error token is "y=41 ")
|
||||
./arith.tests: line 336: a b: arithmetic syntax error in expression (error token is "b")
|
||||
./arith.tests: line 337: ((: a b: arithmetic syntax error in expression (error token is "b")
|
||||
42
|
||||
42
|
||||
42
|
||||
42
|
||||
42
|
||||
42
|
||||
./arith.tests: line 330: 'foo' : syntax error: operand expected (error token is "'foo' ")
|
||||
./arith.tests: line 333: b[c]d: syntax error in expression (error token is "d")
|
||||
./arith.tests: line 352: 'foo' : arithmetic syntax error: operand expected (error token is "'foo' ")
|
||||
./arith.tests: line 355: b[c]d: arithmetic syntax error in expression (error token is "d")
|
||||
|
||||
Reference in New Issue
Block a user