Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-02-24 | 52597: fix character counts in context of operator and operand errors | Bart Schaefer | 1 | -7/+18 | |
2024-01-24 | 52492: prevent indexing error on recursive arithmetic in array subscript | Bart Schaefer | 1 | -1/+6 | |
Operator returns error when operand returns error | |||||
2023-06-22 | 51887: namespaces recognized in math, incorrect usages rejected. | Bart Schaefer | 1 | -3/+7 | |
2022-12-16 | 51212: remove STOUC() macro | Oliver Kiddle | 1 | -1/+1 | |
This served as a workaround for ancient compilers where casts to unsigned char were broken. | |||||
2021-11-30 | 49611 based on 49590 (Martijn Dekker): disable Inf and NaN in math ↵ | Oliver Kiddle | 1 | -1/+1 | |
expressions for sh emulation | |||||
2021-11-12 | github #82: Fix typos | Dimitris Apostolou | 1 | -2/+2 | |
2021-05-15 | 48723: locale-safe recognition of "Inf" and "NaN" constants in math | Vincent Lefevre | 1 | -2/+6 | |
2021-04-06 | 48389: getkeystring() should not return ptr to local var | Jun-ichi Takimoto | 1 | -1/+6 | |
Now it returns NULL if called with GETKEY_SINGLE_CHAR and next character is not found. Caller must check the return value. | |||||
2020-06-23 | 46079: Ignore double quotes in math expressions. | Peter Stephenson | 1 | -0/+2 | |
Treat as white space. This is required for compatibility and previously had no use in zsh as it generated an error. | |||||
2020-01-29 | 45343: Queue signals around arithmetic evaluations | Daniel Shahaf | 1 | -4/+11 | |
The queueing added in execarith() in 45083 is reverted since the callee does this now. | |||||
2018-12-30 | 43944: apply NO_UNSET consistently to arithmeitc | Martijn Dekker | 1 | -0/+2 | |
2018-08-08 | 43261: Fix unary minus with base. | Peter Stephenson | 1 | -2/+13 | |
Apply unary minus to a complete lexical constant rather than the first component that comes along. | |||||
2018-07-31 | 43219 (except term{cap,info}.c): fix several memory leaks | Jun-ichi Takimoto | 1 | -1/+1 | |
2018-05-13 | 42488: test cases for 42369 and address some issues in the code | Oliver Kiddle | 1 | -18/+19 | |
2018-05-13 | Nelson H. F. Beebe: 19597 (rebased 42369): return Inf, NaN etc from floating ↵ | Oliver Kiddle | 1 | -4/+46 | |
point operations instead of errors to allow non-stop IEEE 754 arithmetic | |||||
2017-09-05 | 41641: Some math operations shouldn't be lvalues. | Peter Stephenson | 1 | -8/+2 | |
This includes pre- and post- increment and decrement. Simply mark all values after operations as rvalues. | |||||
2017-03-07 | 40760: Always tokenize unquoted - to Dash. | Peter Stephenson | 1 | -3/+4 | |
This fixes use of pattern match character ranges in unusual contexts. Attempt to detect a tokenized - in cases where we don't care. | |||||
2017-03-01 | 40622 with typos fixed: functions -Ms. | Peter Stephenson | 1 | -10/+22 | |
This adds the capability for mathematical functions based on shell functions to have a string argument. Module functions have had this for a long time. | |||||
2015-10-29 | 37018: Make WARNCREATEGLOBAL more consistent. | Peter Stephenson | 1 | -26/+0 | |
Wd don't need separate math handling any more, and can make it output the function name in all cases. | |||||
2015-10-21 | unposted: strdup should be ztrdup | Barton E. Schaefer | 1 | -1/+1 | |
2015-09-27 | 36651: WARN_CREATE_GLOBAL += math expressions | Daniel Shahaf | 1 | -0/+25 | |
Without this, '() { (( x=42 )) }' and '() { for (( i=0; … )) }' wouldn't warn about $x and $i, respectively, being created global. | |||||
2015-06-02 | 35359: Improved math parsing and errors. | Peter Stephenson | 1 | -7/+14 | |
Check for bogus trailing ")" at end of top-level parse. Extend some math error messages to indicate they are math errors. | |||||
2015-04-15 | unposted: rewrite Nularg math handling to be like other cases | Peter Stephenson | 1 | -2/+6 | |
2015-04-15 | 34892 (slightly tweaked): math evaluation fix | Peter Stephenson | 1 | -2/+2 | |
An empty expression resulting from substitution includes a Nularg, which needs handling the same as an empty string. | |||||
2015-01-15 | 34280: more widespread use of FORCE_FLOAT. | Peter Stephenson | 1 | -1/+12 | |
Add the case of variables read for use in arithmetic expressions. | |||||
2015-01-12 | Propagate float/integer type in arithmetic assignment. | Peter Stephenson | 1 | -1/+28 | |
Add test. Mention this and also floating point mod change in README. | |||||
2015-01-11 | 34230: call fmod() for modulo with floats | Barton E. Schaefer | 1 | -3/+5 | |
2014-11-26 | 33793: add 0b binary interpretation to integer constants | Peter Stephenson | 1 | -2/+4 | |
2014-01-23 | 32299: add use of underscores on arithmetic output for spacing | Peter Stephenson | 1 | -10/+25 | |
2013-11-14 | 31982: detection of floating point constants was problematic. | Peter Stephenson | 1 | -8/+3 | |
Remove the cause and fix the original problem with floating point numbers with leading zeros (users/17445) a different way. | |||||
2013-11-07 | 31937: zle -Fw uses widget semantics for file descriptor handler | Peter Stephenson | 1 | -3/+20 | |
2013-04-30 | 31353: fix handling of floating point in ternary | Bart Schaefer | 1 | -1/+2 | |
2013-03-13 | 31140: avoid crash when hitting recursion limit | Mikael Magnusson | 1 | -1/+2 | |
2013-03-05 | users/17665: add FORCE_FLOAT option | Peter Stephenson | 1 | -0/+15 | |
2012-12-08 | users/17445: fix handling of leading zeroes in floating point | Bart Schaefer | 1 | -1/+2 | |
2012-09-11 | 30647, 30649: allow underscores in numeric constants | Peter Stephenson | 1 | -6/+33 | |
2012-09-06 | 30656: prevent SIGFPE in division by -1 by multiplying instead | Peter Stephenson | 1 | -3/+23 | |
2011-06-19 | 29491: remove some variables set but not used | Peter Stephenson | 1 | -2/+0 | |
2011-05-27 | 29329: fix undefined behaviour in math.c | Mikael Magnusson | 1 | -1/+2 | |
2011-05-19 | 29307, 29308 + replies: Fix some doubled words in docs and comments. | Mikael Magnusson | 1 | -1/+1 | |
2010-06-14 | 28037: improved error messages for module autoloads | Peter Stephenson | 1 | -1/+2 | |
of math functions and builtins | |||||
2010-01-20 | 27611: cache parameter values in math eval so subscripts are eval'd once | Peter Stephenson | 1 | -14/+71 | |
2008-10-16 | 25905: fix and test doubled-hash radix output | Peter Stephenson | 1 | -1/+2 | |
2008-09-26 | 25744: dynamic named directories and further doshfunc() simplification | Peter Stephenson | 1 | -1/+1 | |
2008-09-16 | 25677: add %x and %I prompt escapes for shell source code debugging | Peter Stephenson | 1 | -3/+3 | |
tidy up interface to doshfunc() | |||||
2008-06-12 | 25149: add C_PRECEDENCES option to make arithmetic have C/Perl precedence | Peter Stephenson | 1 | -117/+229 | |
2008-06-10 | Mikael: 25143: spelling corrections | Peter Stephenson | 1 | -1/+2 | |
25144: report supported bases 25139: fix number | |||||
2008-05-14 | 25025: check radix for integer constants is between 2 and 36 inclusive | Peter Stephenson | 1 | -0/+4 | |
2007-06-15 | 23553: bit missed out | Peter Stephenson | 1 | -1/+12 | |
2007-02-12 | 23165: fix problems with bases: error if over 36 and don't interpret octal | Peter Stephenson | 1 | -9/+25 | |