<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell/ash_test/ash-arith, branch noconsole2</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=noconsole2</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=noconsole2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2023-06-25T15:42:05+00:00</updated>
<entry>
<title>shell/math: bash-compatible handling of too large numbers</title>
<updated>2023-06-25T15:42:05+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-25T15:42:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c1c267fd36b0fcac8c8871232eecc1e360173990'/>
<id>urn:sha1:c1c267fd36b0fcac8c8871232eecc1e360173990</id>
<content type='text'>
function                                             old     new   delta
parse_with_base                                        -     170    +170
evaluate_string                                     1477    1309    -168
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 170/-168)            Total: 2 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell: typo fix in tests</title>
<updated>2023-06-18T16:49:00+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-18T16:49:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b61fd8ec5a2e3b728c05a72b603fb4255b1022da'/>
<id>urn:sha1:b61fd8ec5a2e3b728c05a72b603fb4255b1022da</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell/math: fix ?: to not evaluate not-taken branches</title>
<updated>2023-06-16T17:51:01+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-16T17:43:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e1279858394a6079be6816cbedaa3f10e74057cc'/>
<id>urn:sha1:e1279858394a6079be6816cbedaa3f10e74057cc</id>
<content type='text'>
This fixes ash-arith-arith-ternary1/2.tests

function                                             old     new   delta
evaluate_string                                     1271    1432    +161
arith_apply                                          968    1000     +32
arith                                                 22      36     +14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 207/0)             Total: 207 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell: document another arithmetic discrepancy with bash</title>
<updated>2023-06-15T10:44:43+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-15T10:44:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=22cb0d573a5cabd24fa648f1a13c22acf661a4a3'/>
<id>urn:sha1:22cb0d573a5cabd24fa648f1a13c22acf661a4a3</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell/math: remove special code to handle a?b?c:d:e, it works without it now</title>
<updated>2023-06-15T09:22:13+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-15T09:19:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=61a4959251667751e424e600c6cb75de39d6b1c3'/>
<id>urn:sha1:61a4959251667751e424e600c6cb75de39d6b1c3</id>
<content type='text'>
The "hack" to virtually parenthesize ? EXPR : made this unnecessary.
The expression is effectively a?(b?(c):d):e and thus b?c:d is evaluated
before continuing with the second :

function                                             old     new   delta
evaluate_string                                     1148    1132     -16

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell/math: fix parsing of ?: and explain why it's parsed that way</title>
<updated>2023-06-15T08:14:43+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-15T08:07:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5f56a0388271d2de6cf31af1041bdcb3d11029fc'/>
<id>urn:sha1:5f56a0388271d2de6cf31af1041bdcb3d11029fc</id>
<content type='text'>
This fixes arith-precedence1.tests.

This breaks arith-ternary2.tests again (we now evaluate variables
on not-taken branches). We need a better logic here anyway:
not only bare variables should not evaluate when not-taken:
	1 ? eval_me : do_not_eval
but any (arbitrarily complex) expressions shouldn't
evaluate as well!
	1 ? var_is_set=1 : ((var_is_not_set=2,var2*=4))

function                                             old     new   delta
evaluate_string                                     1097    1148     +51

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell/math: fix nested ?: and do not parse variables in not-taken branch</title>
<updated>2023-06-14T09:07:30+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-14T09:05:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=46dccd2ec0eafd850b2168d4dfe4e74949fd3424'/>
<id>urn:sha1:46dccd2ec0eafd850b2168d4dfe4e74949fd3424</id>
<content type='text'>
Fixes arith-ternary1.tests and arith-ternary_nested.tests

function                                             old     new   delta
evaluate_string                                     1043    1101     +58
arith_apply                                         1087    1137     +50
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 108/0)             Total: 108 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell/math: document ternary ?: op's weirdness, add code comments</title>
<updated>2023-06-13T22:41:18+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-13T16:27:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8acbf31708779e7ad559775c9db4ebd7a962be33'/>
<id>urn:sha1:8acbf31708779e7ad559775c9db4ebd7a962be33</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell: add a few yet-failing arithmentic tests</title>
<updated>2023-06-13T13:21:22+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-13T13:17:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8ccb3f7b1375862f8ef82cd9d225da986b80f054'/>
<id>urn:sha1:8ccb3f7b1375862f8ef82cd9d225da986b80f054</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell: fix parsing of $(( (v)++ + NUM ))</title>
<updated>2021-09-26T11:29:25+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2021-09-26T11:25:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1be73dd9ad6d2cf6747934374c1d58bd9bc211b4'/>
<id>urn:sha1:1be73dd9ad6d2cf6747934374c1d58bd9bc211b4</id>
<content type='text'>
function                                             old     new   delta
evaluate_string                                      988    1011     +23

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
