]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/arith.right
Bash-4.1 patchlevel 11
[thirdparty/bash.git] / tests / arith.right
CommitLineData
ccc6cda3
JA
1163
2166
34
416
58
62
74
82
92
101
110
120
130
141
151
162
17-3
18-2
191
200
212
22131072
2329
2433
2549
261
271
280
290
301
311
321
332
343
351
3658
372
3860
391
40256
4116
4262
434
4429
455
46-4
474
481
4932
5032
511
521
5332
3185942a 544
ccc6cda3
JA
5520
561,i+=2
5730
581,j+=2
5920
601,i+=2
6130
621,j+=2
3185942a 63./arith.tests: line 114: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2")
ccc6cda3
JA
6420
656
666,5,3
67263
68255
69255
70127
7136
7240
7310
7410
7510
7610
7710
7810
7936
8036
8162
8263
3185942a 83./arith.tests: line 149: 3425#56: invalid arithmetic base (error token is "3425#56")
ccc6cda3 840
3185942a
JA
85./arith.tests: line 155: 7 = 43 : attempted assignment to non-variable (error token is "= 43 ")
86./arith.tests: line 156: 2#44: value too great for base (error token is "2#44")
87./arith.tests: line 157: 44 / 0 : division by 0 (error token is "0 ")
88./arith.tests: line 158: let: jv += $iv: syntax error: operand expected (error token is "$iv")
89./arith.tests: line 159: jv += $iv : syntax error: operand expected (error token is "$iv ")
90./arith.tests: line 160: let: rv = 7 + (43 * 6: missing `)' (error token is "6")
91./arith.tests: line 164: 0#4: invalid number (error token is "0#4")
92./arith.tests: line 165: 2#110#11: invalid number (error token is "2#110#11")
d166f048
JA
93abc
94def
95ghi
96ok
976
981
990
3185942a 100./arith.tests: line 183: 4 + : syntax error: operand expected (error token is "+ ")
d166f048 10116
3185942a
JA
102./arith.tests: line 188: 4 ? : 3 + 5 : expression expected (error token is ": 3 + 5 ")
103./arith.tests: line 189: 1 ? 20 : `:' expected for conditional expression (error token is "20 ")
104./arith.tests: line 190: 4 ? 20 : : expression expected (error token is ": ")
d166f048 1059
3185942a 106./arith.tests: line 196: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ")
d166f048 1079
3185942a 108./arith.tests: line 199: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ")
d166f048
JA
1099
1100
1119
1120
1139
1141
1159
1167
1177
1184
cce855bc
JA
11932767
12032768
121131072
1222147483647
1231
bb70624e
JA
1244
1254
1265
1275
1284
1293
1303
1314
1324
1337
3185942a
JA
134./arith.tests: line 247: 7-- : syntax error: operand expected (error token is "- ")
135./arith.tests: line 249: --x=7 : attempted assignment to non-variable (error token is "=7 ")
136./arith.tests: line 250: ++x=7 : attempted assignment to non-variable (error token is "=7 ")
137./arith.tests: line 252: x++=7 : attempted assignment to non-variable (error token is "=7 ")
138./arith.tests: line 253: x--=7 : attempted assignment to non-variable (error token is "=7 ")
bb70624e
JA
1394
1407
141-7
1427
1437
3185942a
JA
144./arith1.sub: line 2: 4-- : syntax error: operand expected (error token is "- ")
145./arith1.sub: line 3: 4++ : syntax error: operand expected (error token is "+ ")
146./arith1.sub: line 4: 4 -- : syntax error: operand expected (error token is "- ")
147./arith1.sub: line 5: 4 ++ : syntax error: operand expected (error token is "+ ")
b80f6443
JA
1481
1492
1501
1512
1526
1533
1547
1554
1560
1573
1587
1592
160-2
1611
3185942a 162./arith1.sub: line 35: ((: ++ : syntax error: operand expected (error token is "+ ")
b80f6443
JA
1637
1647
3185942a 165./arith1.sub: line 38: ((: -- : syntax error: operand expected (error token is "- ")
b80f6443
JA
1667
1677
1687
1697
1701
1712
1721
1732
1741
1750
1765
1771
1786
1792
1803
1811
1824
1830
3185942a 184./arith2.sub: line 33: ((: -- : syntax error: operand expected (error token is "- ")
b80f6443
JA
185-7
186-7
3185942a 187./arith2.sub: line 37: ((: ++ : syntax error: operand expected (error token is "+ ")
b80f6443
JA
1887
1897
190-7
191-7
1927
1937
bb70624e 1948 12
3185942a
JA
195./arith.tests: line 274: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ")
196./arith.tests: line 278: a b: syntax error in expression (error token is "b")
197./arith.tests: line 279: ((: a b: syntax error in expression (error token is "b")
28ef6c31
JA
19842
19942
20042
20142
20242
20342
3185942a 204./arith.tests: line 290: b[c]d: syntax error in expression (error token is "d")