Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh Fix quoting inside heredoc's. (from kre)



details:   https://anonhg.NetBSD.org/src/rev/06f2aae421dc
branches:  trunk
changeset: 813866:06f2aae421dc
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 23 14:51:25 2016 +0000

description:
Fix quoting inside heredoc's. (from kre)

diffstat:

 bin/sh/parser.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r f1b2a8ca8cd1 -r 06f2aae421dc bin/sh/parser.c
--- a/bin/sh/parser.c   Tue Feb 23 14:21:37 2016 +0000
+++ b/bin/sh/parser.c   Tue Feb 23 14:51:25 2016 +0000
@@ -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 @@
 
        startlinno = plinno;
        varnest = 0;
+       quoted = 0;
        if (syntax == DQSYNTAX) {
                SETDBLQUOTE();
        }
@@ -1101,7 +1102,6 @@
        bqlist = NULL;
        arinest = 0;
        parenlevel = 0;
-       quoted = 0;
 
        STARTSTACKSTR(out);
        loop: { /* for each line, until end of word */



Home | Main Index | Thread Index | Old Index