Source-Changes-HG archive

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

[src/trunk]: src/bin/sh back this directory up a day, systems won't even boot...



details:   https://anonhg.NetBSD.org/src/rev/75ade0a130a3
branches:  trunk
changeset: 522188:75ade0a130a3
user:      ross <ross%NetBSD.org@localhost>
date:      Tue Feb 12 06:39:10 2002 +0000

description:
back this directory up a day, systems won't even boot (rc.subr splodes)

suggested back-to-the-drawing-board test: $ echo "${PWD:-notlikely}"

diffstat:

 bin/sh/Makefile |  4 ++--
 bin/sh/parser.c |  6 +++---
 bin/sh/show.c   |  8 ++++----
 3 files changed, 9 insertions(+), 9 deletions(-)

diffs (74 lines):

diff -r b51a44a07fcc -r 75ade0a130a3 bin/sh/Makefile
--- a/bin/sh/Makefile   Tue Feb 12 06:01:49 2002 +0000
+++ b/bin/sh/Makefile   Tue Feb 12 06:39:10 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.55 2002/02/11 18:55:10 christos Exp $
+#      $NetBSD: Makefile,v 1.56 2002/02/12 06:39:10 ross Exp $
 #      @(#)Makefile    8.4 (Berkeley) 5/5/95
 
 .include <bsd.own.mk>
@@ -19,7 +19,7 @@
 LFLAGS= -8     # 8-bit lex scanner for arithmetic
 YFLAGS=        -d
 
-CPPFLAGS+=-DSHELL -I. -I${.CURDIR} # -DDEBUG
+CPPFLAGS+=-DSHELL -I. -I${.CURDIR}
 
 .ifdef SMALLPROG
 CPPFLAGS+=-DSMALL
diff -r b51a44a07fcc -r 75ade0a130a3 bin/sh/parser.c
--- a/bin/sh/parser.c   Tue Feb 12 06:01:49 2002 +0000
+++ b/bin/sh/parser.c   Tue Feb 12 06:39:10 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parser.c,v 1.49 2002/02/11 18:57:19 christos Exp $     */
+/*     $NetBSD: parser.c,v 1.50 2002/02/12 06:39:10 ross Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)parser.c   8.7 (Berkeley) 5/16/95";
 #else
-__RCSID("$NetBSD: parser.c,v 1.49 2002/02/11 18:57:19 christos Exp $");
+__RCSID("$NetBSD: parser.c,v 1.50 2002/02/12 06:39:10 ross Exp $");
 #endif
 #endif /* not lint */
 
@@ -1006,7 +1006,7 @@
                                PARSESUB();             /* parse substitution */
                                break;
                        case CENDVAR:   /* '}' */
-                               if (varnest > 0 && !dblquote) {
+                               if (varnest > 0) {
                                        varnest--;
                                        USTPUTC(CTLENDVAR, out);
                                } else {
diff -r b51a44a07fcc -r 75ade0a130a3 bin/sh/show.c
--- a/bin/sh/show.c     Tue Feb 12 06:01:49 2002 +0000
+++ b/bin/sh/show.c     Tue Feb 12 06:39:10 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: show.c,v 1.19 2002/02/11 18:54:30 christos Exp $       */
+/*     $NetBSD: show.c,v 1.20 2002/02/12 06:39:11 ross Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)show.c     8.3 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: show.c,v 1.19 2002/02/11 18:54:30 christos Exp $");
+__RCSID("$NetBSD: show.c,v 1.20 2002/02/12 06:39:11 ross Exp $");
 #endif
 #endif /* not lint */
 
@@ -201,8 +201,8 @@
                        if (subtype == VSLENGTH)
                                putc('#', fp);
 
-                       while (*++p != '=')
-                               putc(*p, fp);
+                       while (*p != '=')
+                               putc(*p++, fp);
 
                        if (subtype & VSNUL)
                                putc(':', fp);



Home | Main Index | Thread Index | Old Index