]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/arith.right
Imported from ../bash-3.0.tar.gz.
[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
5420
551,i+=2
5630
571,j+=2
5820
591,i+=2
6030
611,j+=2
7117c2d2 62./arith.tests: line 108: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2")
ccc6cda3
JA
6320
646
656,5,3
66263
67255
68255
69127
7036
7140
7210
7310
7410
7510
7610
7710
7836
7936
8062
8163
b80f6443 82./arith.tests: line 143: 3425#56: invalid arithmetic base (error token is "3425#56")
ccc6cda3 830
7117c2d2
JA
84./arith.tests: line 149: 7 = 43 : attempted assignment to non-variable (error token is "= 43 ")
85./arith.tests: line 150: 2#44: value too great for base (error token is "2#44")
86./arith.tests: line 151: 44 / 0 : division by 0 (error token is " ")
87./arith.tests: line 152: let: jv += $iv: syntax error: operand expected (error token is "$iv")
88./arith.tests: line 153: jv += $iv : syntax error: operand expected (error token is "$iv ")
89./arith.tests: line 154: let: rv = 7 + (43 * 6: missing `)' (error token is "6")
b80f6443
JA
90./arith.tests: line 158: 0#4: invalid number (error token is "0#4")
91./arith.tests: line 159: 2#110#11: invalid number (error token is "2#110#11")
d166f048
JA
92abc
93def
94ghi
95ok
966
971
980
7117c2d2 99./arith.tests: line 177: 4 + : syntax error: operand expected (error token is " ")
d166f048 10016
7117c2d2
JA
101./arith.tests: line 182: 4 ? : 3 + 5 : expression expected (error token is ": 3 + 5 ")
102./arith.tests: line 183: 1 ? 20 : `:' expected for conditional expression (error token is " ")
103./arith.tests: line 184: 4 ? 20 : : expression expected (error token is " ")
d166f048 1049
7117c2d2 105./arith.tests: line 190: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ")
d166f048 1069
7117c2d2 107./arith.tests: line 193: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ")
d166f048
JA
1089
1090
1109
1110
1129
1131
1149
1157
1167
1174
cce855bc
JA
11832767
11932768
120131072
1212147483647
1221
bb70624e
JA
1234
1244
1255
1265
1274
1283
1293
1304
1314
1327
7117c2d2
JA
133./arith.tests: line 241: 7-- : syntax error: operand expected (error token is " ")
134./arith.tests: line 243: --x=7 : attempted assignment to non-variable (error token is "=7 ")
135./arith.tests: line 244: ++x=7 : attempted assignment to non-variable (error token is "=7 ")
136./arith.tests: line 246: x++=7 : attempted assignment to non-variable (error token is "=7 ")
137./arith.tests: line 247: x--=7 : attempted assignment to non-variable (error token is "=7 ")
bb70624e
JA
1384
1397
140-7
1417
1427
b80f6443
JA
143./arith1.sub: line 2: 4-- : syntax error: operand expected (error token is " ")
144./arith1.sub: line 3: 4++ : syntax error: operand expected (error token is " ")
145./arith1.sub: line 4: 4 -- : syntax error: operand expected (error token is " ")
146./arith1.sub: line 5: 4 ++ : syntax error: operand expected (error token is " ")
1471
1482
1491
1502
1516
1523
1537
1544
1550
1563
1577
1582
159-2
1601
161./arith1.sub: line 35: ((: ++ : syntax error: operand expected (error token is " ")
1627
1637
164./arith1.sub: line 38: ((: -- : syntax error: operand expected (error token is " ")
1657
1667
1677
1687
1691
1702
1711
1722
1731
1740
1755
1761
1776
1782
1793
1801
1814
1820
183./arith2.sub: line 33: ((: -- : syntax error: operand expected (error token is " ")
184-7
185-7
186./arith2.sub: line 37: ((: ++ : syntax error: operand expected (error token is " ")
1877
1887
189-7
190-7
1917
1927
bb70624e 1938 12
b80f6443
JA
194./arith.tests: line 268: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ")
195./arith.tests: line 272: a b: syntax error in expression (error token is "b")
196./arith.tests: line 273: ((: a b: syntax error in expression (error token is "b")
28ef6c31
JA
19742
19842
19942
20042
20142
20242
b80f6443 203./arith.tests: line 284: b[c]d: syntax error in expression (error token is "d")