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