Source-Changes-HG archive

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

[src/trunk]: src/bin/sh (Perhaps) temporary fix to pkgtools (cwrappers) build...



details:   https://anonhg.NetBSD.org/src/rev/795315a7679e
branches:  trunk
changeset: 354259:795315a7679e
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Jun 08 22:10:39 2017 +0000

description:
(Perhaps) temporary fix to pkgtools (cwrappers) build (configure).
Expanding  `` containing \ \n sequences looks to have been giving
problems.   I don't think this is the correct fix, but it will do
no worse harm than (perhaps) incorrectly calculating LINENO in this
kind of (rare) circumstance.   I'll look and see if there should be
a better fix later.

diffstat:

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

diffs (28 lines):

diff -r d74de2f6a5e3 -r 795315a7679e bin/sh/parser.c
--- a/bin/sh/parser.c   Thu Jun 08 21:01:31 2017 +0000
+++ b/bin/sh/parser.c   Thu Jun 08 22:10:39 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parser.c,v 1.136 2017/06/08 13:12:17 kre Exp $ */
+/*     $NetBSD: parser.c,v 1.137 2017/06/08 22:10:39 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.136 2017/06/08 13:12:17 kre Exp $");
+__RCSID("$NetBSD: parser.c,v 1.137 2017/06/08 22:10:39 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -1405,7 +1405,9 @@
 
                        case '\n':
                                plinno++;
+                               /*
                                out = insert_elided_nl(out);
+                               */
                                needprompt = doprompt;
                                break;
 



Home | Main Index | Thread Index | Old Index