Module Name:    src
Committed By:   christos
Date:           Wed Jan  1 19:06:45 UTC 2014

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 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.88 src/bin/sh/parser.c:1.89
--- src/bin/sh/parser.c:1.88	Wed Jan  1 13:29:39 2014
+++ src/bin/sh/parser.c	Wed Jan  1 14:06:45 2014
@@ -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 @@ readtoken1(int firstc, char const *syn, 
 					break;
 				}
 				if (c == '\n') {
+					plinno++;
 					if (doprompt)
 						setprompt(2);
 					else

Reply via email to