mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
49611 based on 49590 (Martijn Dekker): disable Inf and NaN in math expressions for sh emulation
This commit is contained in:
parent
07c77dad50
commit
b3519a9603
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2021-11-30 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 49611 based on 49590 (Martijn Dekker): Src/math.c: disable Inf
|
||||
and NaN in math expressions for sh emulation
|
||||
|
||||
2021-11-28 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 49606: Src/hashnameddir.c, Src/utils.c, configure.ac: remove old
|
||||
|
|
|
@ -863,7 +863,7 @@ zzlex(void)
|
|||
|
||||
p = ptr;
|
||||
ptr = ie;
|
||||
if (ie - p == 3) {
|
||||
if (ie - p == 3 && !EMULATION(EMULATE_SH)) {
|
||||
if ((p[0] == 'N' || p[0] == 'n') &&
|
||||
(p[1] == 'A' || p[1] == 'a') &&
|
||||
(p[2] == 'N' || p[2] == 'n')) {
|
||||
|
|
Loading…
Reference in a new issue