Source-Changes-HG archive

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

[src/trunk]: src/bin/csh stderror does not return.



details:   https://anonhg.NetBSD.org/src/rev/cac693ac5223
branches:  trunk
changeset: 521427:cac693ac5223
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 30 20:53:33 2002 +0000

description:
stderror does not return.

diffstat:

 bin/csh/dol.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r b2fb763c6a5e -r cac693ac5223 bin/csh/dol.c
--- a/bin/csh/dol.c     Wed Jan 30 20:44:54 2002 +0000
+++ b/bin/csh/dol.c     Wed Jan 30 20:53:33 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dol.c,v 1.18 2002/01/30 07:02:01 itohy Exp $ */
+/* $NetBSD: dol.c,v 1.19 2002/01/30 20:53:33 christos Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)dol.c      8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: dol.c,v 1.18 2002/01/30 07:02:01 itohy Exp $");
+__RCSID("$NetBSD: dol.c,v 1.19 2002/01/30 20:53:33 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -475,10 +475,8 @@
                c = DgetC(0);
            } while (Isdigit(c));
            unDredc(c);
-           if (subscr < 0) {
+           if (subscr < 0)
                stderror(ERR_RANGE);
-               return;
-           }
            if (subscr == 0) {
                if (bitset) {
                    dolp = ffile ? STR1 : STR0;



Home | Main Index | Thread Index | Old Index