]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/arith.right
Bash-4.3 patch 7
[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 114: 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 149: 3425#56: invalid arithmetic base (error token is "3425#56")
84 0
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")
93 abc
94 def
95 ghi
96 ok
97 6
98 1
99 0
100 ./arith.tests: line 183: 4 + : syntax error: operand expected (error token is "+ ")
101 16
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 ": ")
105 9
106 ./arith.tests: line 196: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ")
107 9
108 ./arith.tests: line 199: 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 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 ")
139 4
140 7
141 -7
142 7
143 7
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 "+ ")
148 1
149 2
150 1
151 2
152 6
153 3
154 7
155 4
156 0
157 3
158 7
159 2
160 -2
161 1
162 ./arith1.sub: line 35: ((: ++ : syntax error: operand expected (error token is "+ ")
163 7
164 7
165 ./arith1.sub: line 38: ((: -- : syntax error: operand expected (error token is "- ")
166 7
167 7
168 7
169 7
170 1
171 2
172 1
173 2
174 1
175 0
176 5
177 1
178 6
179 2
180 3
181 1
182 4
183 0
184 ./arith2.sub: line 33: ((: -- : syntax error: operand expected (error token is "- ")
185 -7
186 -7
187 ./arith2.sub: line 37: ((: ++ : syntax error: operand expected (error token is "+ ")
188 7
189 7
190 -7
191 -7
192 7
193 7
194 1
195 1
196 4
197 5
198 -3
199 2
200 4
201 5000
202 5000
203 1
204 0
205 0
206 1
207 2147483649
208 0
209 0
210 0
211 0
212 0
213 0
214 -9223372036854775808
215 -9223372036854775808
216 -9223372036854775808
217 -9223372036854775808
218 -9223372036854775808
219 -9223372036854775808
220 -9223372036854775808
221 -9223372036854775808
222 -9223372036854775808
223 -9223372036854775808
224 9223372036854775805 9223372036854775806 9223372036854775807
225 123 456
226 123 456
227 123 456
228 123 456
229 123 456
230 123 456
231 1
232 1 2 3 4 5 6 7
233 0 1 2 3 4 5 6 7
234 0
235 0, 0
236 0, 1
237 8 12
238 ./arith.tests: line 286: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ")
239 ./arith.tests: line 290: a b: syntax error in expression (error token is "b")
240 ./arith.tests: line 291: ((: a b: syntax error in expression (error token is "b")
241 42
242 42
243 42
244 42
245 42
246 42
247 ./arith.tests: line 302: b[c]d: syntax error in expression (error token is "d")