]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/arith.right
Imported from ../bash-2.05b.tar.gz.
[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 20
55 1,i+=2
56 30
57 1,j+=2
58 20
59 1,i+=2
60 30
61 1,j+=2
62 ./arith.tests: line 108: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2")
63 20
64 6
65 6,5,3
66 263
67 255
68 255
69 127
70 36
71 40
72 10
73 10
74 10
75 10
76 10
77 10
78 36
79 36
80 62
81 63
82 ./arith.tests: line 143: 3425#56: illegal arithmetic base (error token is "3425#56")
83 0
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")
90 ./arith.tests: line 158: 0#4: bad number (error token is "0#4")
91 ./arith.tests: line 159: 2#110#11: bad number (error token is "2#110#11")
92 abc
93 def
94 ghi
95 ok
96 6
97 1
98 0
99 ./arith.tests: line 177: 4 + : syntax error: operand expected (error token is " ")
100 16
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 " ")
104 9
105 ./arith.tests: line 190: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ")
106 9
107 ./arith.tests: line 193: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ")
108 9
109 0
110 9
111 0
112 9
113 1
114 9
115 7
116 7
117 4
118 32767
119 32768
120 131072
121 2147483647
122 1
123 4
124 4
125 5
126 5
127 4
128 3
129 3
130 4
131 4
132 7
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 ")
138 4
139 7
140 -7
141 7
142 7
143 8 12
144 ./arith.tests: line 265: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ")
145 ./arith.tests: line 269: a b: syntax error in expression (error token is "b")
146 ./arith.tests: line 270: ((: a b: syntax error in expression (error token is "b")
147 42
148 42
149 42
150 42
151 42
152 42