Blame 0003-zsh-5.5.1-parse-error-exit-status.patch
|
Kamil Dudka |
bcabc2 |
From 878ebe3c74cee4b9702c9672b87ee56f057e1f02 Mon Sep 17 00:00:00 2001
|
|
Kamil Dudka |
bcabc2 |
From: Peter Stephenson <p.stephenson@samsung.com>
|
|
Kamil Dudka |
bcabc2 |
Date: Thu, 29 Nov 2018 17:54:02 +0000
|
|
Kamil Dudka |
bcabc2 |
Subject: [PATCH] 43854: Set tok to LEXERR on generic parse error.
|
|
Kamil Dudka |
bcabc2 |
|
|
Kamil Dudka |
bcabc2 |
Needed by main loop which detects an error this way.
|
|
Kamil Dudka |
bcabc2 |
|
|
Kamil Dudka |
bcabc2 |
Upstream-commit: ef20425381e83ebd5a10c2ab270a347018371162
|
|
Kamil Dudka |
bcabc2 |
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
|
Kamil Dudka |
bcabc2 |
---
|
|
Kamil Dudka |
bcabc2 |
Src/lex.c | 1 +
|
|
Kamil Dudka |
bcabc2 |
1 file changed, 1 insertion(+)
|
|
Kamil Dudka |
bcabc2 |
|
|
Kamil Dudka |
bcabc2 |
diff --git a/Src/lex.c b/Src/lex.c
|
|
Kamil Dudka |
bcabc2 |
index 44ad880..c29aaba 100644
|
|
Kamil Dudka |
bcabc2 |
--- a/Src/lex.c
|
|
Kamil Dudka |
bcabc2 |
+++ b/Src/lex.c
|
|
Kamil Dudka |
bcabc2 |
@@ -1613,6 +1613,7 @@ parsestr(char **s)
|
|
Kamil Dudka |
bcabc2 |
zerr("parse error near `%c'", err);
|
|
Kamil Dudka |
bcabc2 |
else
|
|
Kamil Dudka |
bcabc2 |
zerr("parse error");
|
|
Kamil Dudka |
bcabc2 |
+ tok = LEXERR;
|
|
Kamil Dudka |
bcabc2 |
}
|
|
Kamil Dudka |
bcabc2 |
}
|
|
Kamil Dudka |
bcabc2 |
return err;
|
|
Kamil Dudka |
bcabc2 |
--
|
|
Kamil Dudka |
bcabc2 |
2.17.2
|
|
Kamil Dudka |
bcabc2 |
|