summaryrefslogtreecommitdiff
path: root/shell/math.c
AgeCommit message (Expand)Author
2023-07-02shell/math: avoid $((3**999999999999999999)) to take yearsDenys Vlasenko
2023-07-02shell/math: do not accept $((36#@))Denys Vlasenko
2023-06-30shell/math: code shrinkDenys Vlasenko
2023-06-29shell/math: code shrinkDenys Vlasenko
2023-06-28shell/math: code shrinkDenys Vlasenko
2023-06-26shell/math: improve commentsDenys Vlasenko
2023-06-26shell/math: rename TOK_NUM to TOK_VALUE, improve commentsDenys Vlasenko
2023-06-25shell/math: bash-compatible handling of too large numbersDenys Vlasenko
2023-06-19shell/math: disable debug againDenys Vlasenko
2023-06-19shell/math: $((1?)) has one-too-small opstack, fix thisDenys Vlasenko
2023-06-19shell/math: fix comments about jammed-together num+num corner casesDenys Vlasenko
2023-06-18shell/math: add note on ERANGEDenys Vlasenko
2023-06-18shell/math: explain why we use separate &endDenys Vlasenko
2023-06-18shell/math: code shrinkDenys Vlasenko
2023-06-18shell/math: eliminate redundant endofname()Denys Vlasenko
2023-06-18shell/math: code shrinkDenys Vlasenko
2023-06-18shell/math: decrease stack usage by not allocating copies of variable namesDenys Vlasenko
2023-06-18shell/math: decrease stack usageDenys Vlasenko
2023-06-17shell/math: eliminate some redundant stores on return code pathDenys Vlasenko
2023-06-17shell/math: change ?: nesting code to not have 63 level nesting limitationDenys Vlasenko
2023-06-17shell/math.h: update comments, rearrange struct members for smaller codeDenys Vlasenko
2023-06-17shell/math: code shrinkDenys Vlasenko
2023-06-16shell/math: tweka commentsDenys Vlasenko
2023-06-16shell/math: fix ?: to not evaluate not-taken branchesDenys Vlasenko
2023-06-15shell/math: simplify handling of unary plusDenys Vlasenko
2023-06-15shell/math: explain the logic, small tweak to make code smallerDenys Vlasenko
2023-06-15shell/math: fix order of expansion of variables to numbersDenys Vlasenko
2023-06-15shell/math: remove special code to handle a?b?c:d:e, it works without it nowDenys Vlasenko
2023-06-15shell/math: fix parsing of ?: and explain why it's parsed that wayDenys Vlasenko
2023-06-15shell/math: simpler insertion of "fake" last RPARENDenys Vlasenko
2023-06-14shell/math: trivial code shrinkDenys Vlasenko
2023-06-14shell/math: fix the order of variable resolution in binopsDenys Vlasenko
2023-06-14shell/math: remove now-unused second_valDenys Vlasenko
2023-06-14shell/math: fix nested ?: and do not parse variables in not-taken branchDenys Vlasenko
2023-06-14shell/math: remove a redundant checkDenys Vlasenko
2023-06-14shell/math: document ternary ?: op's weirdness, add code commentsDenys Vlasenko
2023-06-13shell/math: fix one name check, other minor cleanupsDenys Vlasenko
2023-06-13shell/math: reduce stack usageDenys Vlasenko
2023-06-12shell: avoid segfault on ${0::0/0~09J}. Closes 15216Denys Vlasenko
2021-09-26shell: fix parsing of $(( (v)++ + NUM ))Denys Vlasenko
2021-09-25shell: fix arithmentic evaluation of "++7" and such (it is + + 7, i.e. 7)Denys Vlasenko
2020-10-01shell: remove FAST_FUNC from a static functionDenys Vlasenko
2019-10-22shell: better comments in BASE#nn codeDenys Vlasenko
2019-09-22ash: fix BASE###nn bashism for bases 36..64Denys Vlasenko
2019-09-22ash: fix BASE###nn bashism to accept letter 'digits' for bases > 9Denys Vlasenko
2019-05-26shell: move all definitions of strto_arith_t() togetherDenys Vlasenko
2019-05-19shell: implement optional "BASE#nnnn" numeric literalsDenys Vlasenko
2018-01-28shell: handle $((NUM++...) like bash does. Closes 10706Denys Vlasenko
2017-08-02do not use `a' quoting style in commentsDenys Vlasenko
2014-11-20typo fix in commentDenys Vlasenko