]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/arith.right
Bash-5.2 patch 26: fix typo when specifying readline's custom color prefix
[thirdparty/bash.git] / tests / arith.right
1 163
2 166
3 4
4 16
5 8
6 2
7 4
8 2
9 2
10 1
11 0
12 0
13 0
14 1
15 1
16 2
17 -3
18 -2
19 1
20 0
21 2
22 131072
23 29
24 33
25 49
26 1
27 1
28 0
29 0
30 1
31 1
32 1
33 2
34 3
35 1
36 58
37 2
38 60
39 1
40 256
41 16
42 62
43 4
44 29
45 5
46 -4
47 4
48 1
49 32
50 32
51 1
52 1
53 32
54 4
55 20
56 1,i+=2
57 30
58 1,j+=2
59 20
60 1,i+=2
61 30
62 1,j+=2
63 ./arith.tests: line 127: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2")
64 20
65 6
66 6,5,3
67 263
68 255
69 255
70 127
71 36
72 40
73 10
74 10
75 10
76 10
77 10
78 10
79 36
80 36
81 62
82 63
83 ./arith.tests: line 162: 3425#56: invalid arithmetic base (error token is "3425#56")
84 ./arith.tests: line 165: 2#: invalid integer constant (error token is "2#")
85 ./arith.tests: line 168: 7 = 43 : attempted assignment to non-variable (error token is "= 43 ")
86 ./arith.tests: line 169: 2#44: value too great for base (error token is "2#44")
87 ./arith.tests: line 170: 44 / 0 : division by 0 (error token is "0 ")
88 ./arith.tests: line 171: let: jv += $iv: syntax error: operand expected (error token is "$iv")
89 ./arith.tests: line 172: jv += $iv : syntax error: operand expected (error token is "$iv ")
90 ./arith.tests: line 173: let: rv = 7 + (43 * 6: missing `)' (error token is "6")
91 ./arith.tests: line 177: 0#4: invalid number (error token is "0#4")
92 ./arith.tests: line 178: 2#110#11: invalid number (error token is "2#110#11")
93 abc
94 def
95 ghi
96 ok
97 6
98 1
99 0
100 ./arith.tests: line 196: 4 + : syntax error: operand expected (error token is "+ ")
101 16
102 ./arith.tests: line 201: 4 ? : 3 + 5 : expression expected (error token is ": 3 + 5 ")
103 ./arith.tests: line 202: 1 ? 20 : `:' expected for conditional expression (error token is "20 ")
104 ./arith.tests: line 203: 4 ? 20 : : expression expected (error token is ": ")
105 9
106 ./arith.tests: line 209: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ")
107 9
108 ./arith.tests: line 212: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ")
109 9
110 0
111 9
112 0
113 9
114 1
115 9
116 7
117 7
118 4
119 32767
120 32768
121 131072
122 2147483647
123 1
124 4
125 4
126 5
127 5
128 4
129 3
130 3
131 4
132 4
133 7
134 ./arith.tests: line 260: 7-- : syntax error: operand expected (error token is "- ")
135 ./arith.tests: line 262: --x=7 : attempted assignment to non-variable (error token is "=7 ")
136 ./arith.tests: line 263: ++x=7 : attempted assignment to non-variable (error token is "=7 ")
137 ./arith.tests: line 265: x++=7 : attempted assignment to non-variable (error token is "=7 ")
138 ./arith.tests: line 266: x--=7 : attempted assignment to non-variable (error token is "=7 ")
139 4
140 7
141 -7
142 7
143 7
144 2
145 2
146 ./arith1.sub: line 15: 4-- : syntax error: operand expected (error token is "- ")
147 ./arith1.sub: line 16: 4++ : syntax error: operand expected (error token is "+ ")
148 ./arith1.sub: line 17: 4 -- : syntax error: operand expected (error token is "- ")
149 ./arith1.sub: line 18: 4 ++ : syntax error: operand expected (error token is "+ ")
150 1
151 2
152 1
153 2
154 6
155 3
156 7
157 4
158 0
159 3
160 7
161 2
162 -2
163 1
164 ./arith1.sub: line 48: ((: ++ : syntax error: operand expected (error token is "+ ")
165 7
166 7
167 ./arith1.sub: line 51: ((: -- : syntax error: operand expected (error token is "- ")
168 7
169 7
170 7
171 7
172 1
173 2
174 1
175 2
176 1
177 0
178 5
179 1
180 6
181 2
182 3
183 1
184 4
185 0
186 ./arith2.sub: line 46: ((: -- : syntax error: operand expected (error token is "- ")
187 -7
188 -7
189 ./arith2.sub: line 50: ((: ++ : syntax error: operand expected (error token is "+ ")
190 7
191 7
192 -7
193 -7
194 7
195 7
196 1
197 1
198 4
199 5
200 -3
201 2
202 4
203 5000
204 5000
205 1
206 0
207 0
208 1
209 2147483649
210 0
211 0
212 0
213 0
214 0
215 0
216 -9223372036854775808
217 -9223372036854775808
218 -9223372036854775808
219 -9223372036854775808
220 -9223372036854775808
221 -9223372036854775808
222 -9223372036854775808
223 -9223372036854775808
224 -9223372036854775808
225 -9223372036854775808
226 9223372036854775805 9223372036854775806 9223372036854775807
227 123 456
228 123 456
229 123 456
230 123 456
231 123 456
232 123 456
233 1
234 1 2 3 4 5 6 7
235 0 1 2 3 4 5 6 7
236 0
237 0, 0
238 0, 1
239 efg
240 e
241 efg
242 e
243 abcdefg
244 efg
245 0
246 0
247 0
248 0
249 0
250 0
251 0
252 8 12
253 ./arith.tests: line 310: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ")
254 ./arith.tests: line 314: a b: syntax error in expression (error token is "b")
255 ./arith.tests: line 315: ((: a b: syntax error in expression (error token is "b")
256 42
257 42
258 42
259 42
260 42
261 42
262 ./arith.tests: line 330: 'foo' : syntax error: operand expected (error token is "'foo' ")
263 ./arith.tests: line 333: b[c]d: syntax error in expression (error token is "d")