diff options
| author | Oliver Kiddle <opk@zsh.org> | 2021-11-30 18:27:53 +0100 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2021-11-30 18:27:53 +0100 |
| commit | b3519a9603e8f7f1c9830e14f918e87daf8fea13 (patch) | |
| tree | 9f166214fa090e99a8b44c8d68e345dc5645c7d7 /Src/math.c | |
| parent | 49606: remove old NIS-specific code for retrieving user data (diff) | |
| download | zsh-b3519a9603e8f7f1c9830e14f918e87daf8fea13.tar zsh-b3519a9603e8f7f1c9830e14f918e87daf8fea13.tar.gz zsh-b3519a9603e8f7f1c9830e14f918e87daf8fea13.tar.bz2 zsh-b3519a9603e8f7f1c9830e14f918e87daf8fea13.tar.lz zsh-b3519a9603e8f7f1c9830e14f918e87daf8fea13.tar.xz zsh-b3519a9603e8f7f1c9830e14f918e87daf8fea13.tar.zst zsh-b3519a9603e8f7f1c9830e14f918e87daf8fea13.zip | |
49611 based on 49590 (Martijn Dekker): disable Inf and NaN in math expressions for sh emulation
Diffstat (limited to 'Src/math.c')
| -rw-r--r-- | Src/math.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/math.c b/Src/math.c index 4f24361a4..777ad9c31 100644 --- a/Src/math.c +++ b/Src/math.c @@ -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')) { |
