Source-Changes-HG archive

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

[src/trunk]: src/bin/sh There was a case where \n did not increase plinno



details:   https://anonhg.NetBSD.org/src/rev/68ba9fe0c86b
branches:  trunk
changeset: 325632:68ba9fe0c86b
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 01 19:06:45 2014 +0000

description:
There was a case where \n did not increase plinno

diffstat:

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

diffs (26 lines):

diff -r dcdba2aaed34 -r 68ba9fe0c86b bin/sh/parser.c
--- a/bin/sh/parser.c   Wed Jan 01 18:57:15 2014 +0000
+++ b/bin/sh/parser.c   Wed Jan 01 19:06:45 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parser.c,v 1.88 2014/01/01 18:29:39 christos Exp $     */
+/*     $NetBSD: parser.c,v 1.89 2014/01/01 19:06:45 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.88 2014/01/01 18:29:39 christos Exp $");
+__RCSID("$NetBSD: parser.c,v 1.89 2014/01/01 19:06:45 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -1000,6 +1000,7 @@
                                        break;
                                }
                                if (c == '\n') {
+                                       plinno++;
                                        if (doprompt)
                                                setprompt(2);
                                        else



Home | Main Index | Thread Index | Old Index