Module Name:    src
Committed By:   kre
Date:           Tue Jan 15 14:17:50 UTC 2019

Modified Files:
        src/bin/sh: parser.c

Log Message:
pgetc_linecont() needs to use pgetc() rather than pgetc_macro()
so the fake char returned by the latter when an alias ends (which
is there so we can correctly avoid alias recursion) is correctly
ignored where it is not wanted.


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 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.160 src/bin/sh/parser.c:1.161
--- src/bin/sh/parser.c:1.160	Wed Jan  9 10:59:20 2019
+++ src/bin/sh/parser.c	Tue Jan 15 14:17:49 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: parser.c,v 1.160 2019/01/09 10:59:20 kre Exp $	*/
+/*	$NetBSD: parser.c,v 1.161 2019/01/15 14:17:49 kre 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.160 2019/01/09 10:59:20 kre Exp $");
+__RCSID("$NetBSD: parser.c,v 1.161 2019/01/15 14:17:49 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -2365,7 +2365,7 @@ pgetc_linecont(void)
 {
 	int c;
 
-	while ((c = pgetc_macro()) == '\\') {
+	while ((c = pgetc()) == '\\') {
 		c = pgetc();
 		if (c == '\n') {
 			plinno++;

Reply via email to