busybox/shell/ash_test/ash-arith
Denys Vlasenko c1c267fd36 shell/math: bash-compatible handling of too large numbers
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 <vda.linux@googlemail.com>
2023-06-25 17:42:05 +02:00
..
README.ash small ash testsuite, adapted from bash 2007-03-05 00:27:50 +00:00
arith-assign-in-varexp.right shell: add a few yet-failing arithmentic tests 2023-06-13 15:21:22 +02:00
arith-assign-in-varexp.tests shell: add a few yet-failing arithmentic tests 2023-06-13 15:21:22 +02:00
arith-assign-in-varexp1.right shell: document another arithmetic discrepancy with bash 2023-06-15 12:44:43 +02:00
arith-assign-in-varexp1.tests shell: document another arithmetic discrepancy with bash 2023-06-15 12:44:43 +02:00
arith-bash1.right ash: support for && and || in [[ expr ]]; add testsuite checks 2008-03-25 07:49:43 +00:00
arith-bash1.tests ash: support for && and || in [[ expr ]]; add testsuite checks 2008-03-25 07:49:43 +00:00
arith-bignum1.right shell/math: bash-compatible handling of too large numbers 2023-06-25 17:42:05 +02:00
arith-bignum1.tests shell/math: bash-compatible handling of too large numbers 2023-06-25 17:42:05 +02:00
arith-comma1.right shell: add a few yet-failing arithmentic tests 2023-06-13 15:21:22 +02:00
arith-comma1.tests shell: add a few yet-failing arithmentic tests 2023-06-13 15:21:22 +02:00
arith-for.right fix accumulated whitespace and indentation damage 2007-03-20 11:30:28 +00:00
arith-for.testsx fix accumulated whitespace and indentation damage 2007-03-20 11:30:28 +00:00
arith-postinc.right shell: fix parsing of $(( (v)++ + NUM )) 2021-09-26 13:29:25 +02:00
arith-postinc.tests shell: fix parsing of $(( (v)++ + NUM )) 2021-09-26 13:29:25 +02:00
arith-precedence1.right shell/math: document ternary ?: op's weirdness, add code comments 2023-06-14 00:41:18 +02:00
arith-precedence1.tests shell/math: document ternary ?: op's weirdness, add code comments 2023-06-14 00:41:18 +02:00
arith-ternary-assign.right shell/math: fix ?: to not evaluate not-taken branches 2023-06-16 19:51:01 +02:00
arith-ternary-assign.tests shell/math: fix ?: to not evaluate not-taken branches 2023-06-16 19:51:01 +02:00
arith-ternary-comma.right shell/math: fix ?: to not evaluate not-taken branches 2023-06-16 19:51:01 +02:00
arith-ternary-comma.tests shell/math: fix ?: to not evaluate not-taken branches 2023-06-16 19:51:01 +02:00
arith-ternary-preincr.right shell/math: fix ?: to not evaluate not-taken branches 2023-06-16 19:51:01 +02:00
arith-ternary-preincr.tests shell/math: fix ?: to not evaluate not-taken branches 2023-06-16 19:51:01 +02:00
arith-ternary1.right shell/math: fix nested ?: and do not parse variables in not-taken branch 2023-06-14 11:07:30 +02:00
arith-ternary1.tests shell/math: fix nested ?: and do not parse variables in not-taken branch 2023-06-14 11:07:30 +02:00
arith-ternary2.right shell/math: fix nested ?: and do not parse variables in not-taken branch 2023-06-14 11:07:30 +02:00
arith-ternary2.tests shell/math: fix nested ?: and do not parse variables in not-taken branch 2023-06-14 11:07:30 +02:00
arith-ternary3.right shell/math: fix ?: to not evaluate not-taken branches 2023-06-16 19:51:01 +02:00
arith-ternary3.tests shell/math: fix ?: to not evaluate not-taken branches 2023-06-16 19:51:01 +02:00
arith-ternary_nested.right shell/math: fix nested ?: and do not parse variables in not-taken branch 2023-06-14 11:07:30 +02:00
arith-ternary_nested.tests shell/math: fix nested ?: and do not parse variables in not-taken branch 2023-06-14 11:07:30 +02:00
arith-ternary_nested1.right shell/math: fix parsing of ?: and explain why it's parsed that way 2023-06-15 10:14:43 +02:00
arith-ternary_nested1.tests shell/math: fix parsing of ?: and explain why it's parsed that way 2023-06-15 10:14:43 +02:00
arith-ternary_nested2.right shell/math: remove special code to handle a?b?c:d:e, it works without it now 2023-06-15 11:22:13 +02:00
arith-ternary_nested2.tests shell/math: remove special code to handle a?b?c:d:e, it works without it now 2023-06-15 11:22:13 +02:00
arith-ternary_nested3.right shell/math: fix ?: to not evaluate not-taken branches 2023-06-16 19:51:01 +02:00
arith-ternary_nested3.tests shell: typo fix in tests 2023-06-18 18:49:00 +02:00
arith.right shell/math: bash-compatible handling of too large numbers 2023-06-25 17:42:05 +02:00
arith.tests shell/math: bash-compatible handling of too large numbers 2023-06-25 17:42:05 +02:00
arith1.sub shell: fix arithmentic evaluation of "++7" and such (it is + + 7, i.e. 7) 2021-09-25 22:04:45 +02:00
arith2.sub shell: enable more tests which are passing now 2021-09-25 22:35:17 +02:00
arith_nested1.right ash: parser: Add syntax stack for recursive parsing 2018-04-02 13:15:37 +02:00
arith_nested1.tests ash: parser: Add syntax stack for recursive parsing 2018-04-02 13:15:37 +02:00

README.ash

there is no support for (( )) constructs in ash