From af1c009c3ea97cb4ec79b54c8b208198230e3ffb Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Mon, 22 Jun 2020 12:06:43 +0100
Subject: 46079: Ignore double quotes in math expressions.
Treat as white space.
This is required for compatibility and previously had no use in zsh
as it generated an error.
---
Src/math.c | 2 ++
1 file changed, 2 insertions(+)
(limited to 'Src/math.c')
diff --git a/Src/math.c b/Src/math.c
index 905b910ec..b57ba42d4 100644
--- a/Src/math.c
+++ b/Src/math.c
@@ -831,6 +831,8 @@ zzlex(void)
case ' ': /* Fall through! */
case '\t':
case '\n':
+ case '"': /* POSIX says ignore these */
+ case Dnull:
break;
default:
if (idigit(*--ptr) || *ptr == '.')
--
cgit 1.4.1