aboutsummaryrefslogtreecommitdiff
path: root/shell/math.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* shell/math: avoid $((3**999999999999999999)) to take yearsDenys Vlasenko2023-07-021-3/+14
* shell/math: do not accept $((36#@))Denys Vlasenko2023-07-021-16/+22
* shell/math: code shrinkDenys Vlasenko2023-06-301-4/+7
* shell/math: code shrinkDenys Vlasenko2023-06-291-11/+13
* shell/math: code shrinkDenys Vlasenko2023-06-281-8/+10
* shell/math: improve commentsDenys Vlasenko2023-06-261-2/+4
* shell/math: rename TOK_NUM to TOK_VALUE, improve commentsDenys Vlasenko2023-06-261-24/+25
* shell/math: bash-compatible handling of too large numbersDenys Vlasenko2023-06-251-36/+48
* shell/math: disable debug againDenys Vlasenko2023-06-191-1/+1
* shell/math: $((1?)) has one-too-small opstack, fix thisDenys Vlasenko2023-06-191-1/+2
* shell/math: fix comments about jammed-together num+num corner casesDenys Vlasenko2023-06-191-8/+16
* shell/math: add note on ERANGEDenys Vlasenko2023-06-181-4/+11
* shell/math: explain why we use separate &endDenys Vlasenko2023-06-181-1/+1
* shell/math: code shrinkDenys Vlasenko2023-06-181-2/+5
* shell/math: eliminate redundant endofname()Denys Vlasenko2023-06-181-8/+8
* shell/math: code shrinkDenys Vlasenko2023-06-181-11/+12
* shell/math: decrease stack usage by not allocating copies of variable namesDenys Vlasenko2023-06-181-32/+51
* shell/math: decrease stack usageDenys Vlasenko2023-06-181-35/+27
* shell/math: eliminate some redundant stores on return code pathDenys Vlasenko2023-06-171-20/+23
* shell/math: change ?: nesting code to not have 63 level nesting limitationDenys Vlasenko2023-06-171-13/+20
* shell/math.h: update comments, rearrange struct members for smaller codeDenys Vlasenko2023-06-171-1/+1
* shell/math: code shrinkDenys Vlasenko2023-06-171-3/+3
* shell/math: tweka commentsDenys Vlasenko2023-06-161-16/+8
* shell/math: fix ?: to not evaluate not-taken branchesDenys Vlasenko2023-06-161-22/+63
* shell/math: simplify handling of unary plusDenys Vlasenko2023-06-151-3/+5
* shell/math: explain the logic, small tweak to make code smallerDenys Vlasenko2023-06-151-10/+25
* shell/math: fix order of expansion of variables to numbersDenys Vlasenko2023-06-151-34/+15
* shell/math: remove special code to handle a?b?c:d:e, it works without it nowDenys Vlasenko2023-06-151-9/+3
* shell/math: fix parsing of ?: and explain why it's parsed that wayDenys Vlasenko2023-06-151-14/+34
* shell/math: simpler insertion of "fake" last RPARENDenys Vlasenko2023-06-151-7/+6
* shell/math: trivial code shrinkDenys Vlasenko2023-06-141-4/+3
* shell/math: fix the order of variable resolution in binopsDenys Vlasenko2023-06-141-12/+15
* shell/math: remove now-unused second_valDenys Vlasenko2023-06-141-20/+3
* shell/math: fix nested ?: and do not parse variables in not-taken branchDenys Vlasenko2023-06-141-31/+49
* shell/math: remove a redundant checkDenys Vlasenko2023-06-141-6/+6
* shell/math: document ternary ?: op's weirdness, add code commentsDenys Vlasenko2023-06-141-28/+49
* shell/math: fix one name check, other minor cleanupsDenys Vlasenko2023-06-131-8/+12
* shell/math: reduce stack usageDenys Vlasenko2023-06-131-30/+36
* shell: avoid segfault on ${0::0/0~09J}. Closes 15216Denys Vlasenko2023-06-121-4/+35
* shell: fix parsing of $(( (v)++ + NUM ))Denys Vlasenko2021-09-261-22/+30
* shell: fix arithmentic evaluation of "++7" and such (it is + + 7, i.e. 7)Denys Vlasenko2021-09-251-8/+15
* shell: remove FAST_FUNC from a static functionDenys Vlasenko2020-10-011-2/+2
* shell: better comments in BASE#nn codeDenys Vlasenko2019-10-221-10/+14
* ash: fix BASE###nn bashism for bases 36..64Denys Vlasenko2019-09-221-3/+21
* ash: fix BASE###nn bashism to accept letter 'digits' for bases > 9Denys Vlasenko2019-09-221-2/+9
* shell: move all definitions of strto_arith_t() togetherDenys Vlasenko2019-05-261-3/+7
* shell: implement optional "BASE#nnnn" numeric literalsDenys Vlasenko2019-05-191-0/+36
* shell: handle $((NUM++...) like bash does. Closes 10706Denys Vlasenko2018-01-281-2/+17
* do not use `a' quoting style in commentsDenys Vlasenko2017-08-021-1/+1
* typo fix in commentDenys Vlasenko2014-11-201-1/+1