Module Name: src
Committed By: christos
Date: Tue Feb 23 14:51:25 UTC 2016
Modified Files:
src/bin/sh: parser.c
Log Message:
Fix quoting inside heredoc's. (from kre)
To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/bin/sh/parser.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/parser.c
diff -u src/bin/sh/parser.c:1.98 src/bin/sh/parser.c:1.99
--- src/bin/sh/parser.c:1.98 Mon Feb 22 15:02:00 2016
+++ src/bin/sh/parser.c Tue Feb 23 09:51:25 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: parser.c,v 1.98 2016/02/22 20:02:00 christos Exp $ */
+/* $NetBSD: parser.c,v 1.99 2016/02/23 14:51:25 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95";
#else
-__RCSID("$NetBSD: parser.c,v 1.98 2016/02/22 20:02:00 christos Exp $");
+__RCSID("$NetBSD: parser.c,v 1.99 2016/02/23 14:51:25 christos Exp $");
#endif
#endif /* not lint */
@@ -1094,6 +1094,7 @@ readtoken1(int firstc, char const *syn,
startlinno = plinno;
varnest = 0;
+ quoted = 0;
if (syntax == DQSYNTAX) {
SETDBLQUOTE();
}
@@ -1101,7 +1102,6 @@ readtoken1(int firstc, char const *syn,
bqlist = NULL;
arinest = 0;
parenlevel = 0;
- quoted = 0;
STARTSTACKSTR(out);
loop: { /* for each line, until end of word */