Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh pgetc_linecont() needs to use pgetc() rather than pge...
details: https://anonhg.NetBSD.org/src/rev/3a8c41dfa534
branches: trunk
changeset: 996023:3a8c41dfa534
user: kre <kre%NetBSD.org@localhost>
date: Tue Jan 15 14:17:49 2019 +0000
description:
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.
diffstat:
bin/sh/parser.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a8865d64ad04 -r 3a8c41dfa534 bin/sh/parser.c
--- a/bin/sh/parser.c Tue Jan 15 12:55:03 2019 +0000
+++ b/bin/sh/parser.c Tue Jan 15 14:17:49 2019 +0000
@@ -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 @@
{
int c;
- while ((c = pgetc_macro()) == '\\') {
+ while ((c = pgetc()) == '\\') {
c = pgetc();
if (c == '\n') {
plinno++;
Home |
Main Index |
Thread Index |
Old Index