From cc235294ecadba9f3da0c9f8a5186eae2bbf7e64 Mon Sep 17 00:00:00 2001 From: rlar Date: Tue, 15 Apr 2014 19:13:47 +0200 Subject: [PATCH] lexical.c, change semantics of an ESCAPE in a given input `string' now simply skip it. presumably and in accordance to what the comments seems to suggest ESCAPE never was really meant to be read as '[' but was replaced just to get it out of way deeper in the for loop where an ESCAPE starts an ancient mechanism to reenter interactive input via a terminals TIOCSTI capability --- src/frontend/parser/lexical.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/parser/lexical.c b/src/frontend/parser/lexical.c index abaa21f5a..e40528da9 100644 --- a/src/frontend/parser/lexical.c +++ b/src/frontend/parser/lexical.c @@ -149,11 +149,11 @@ nloop: c = cp_readchar(&string, cp_inp_cur); - if (string && (c == ESCAPE)) - c = '['; - gotchar: + if (string && (c == ESCAPE)) + continue; + if ((c != EOF) && (c != ESCAPE)) linebuf[j++] = (char) c;