Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Remove a now unnecessary (ater the changes in 1.136) ...



details:   https://anonhg.NetBSD.org/src/rev/8956b99a0195
branches:  trunk
changeset: 823782:8956b99a0195
user:      kre <kre%NetBSD.org@localhost>
date:      Tue May 09 04:08:37 2017 +0000

description:
Remove a now unnecessary (ater the changes in 1.136) clearing of EV_EXIT.
(NFC, but should save a byte or two of code space.)

diffstat:

 bin/sh/eval.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r d4f85613df6d -r 8956b99a0195 bin/sh/eval.c
--- a/bin/sh/eval.c     Tue May 09 03:41:18 2017 +0000
+++ b/bin/sh/eval.c     Tue May 09 04:08:37 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eval.c,v 1.137 2017/05/09 03:41:18 kre Exp $   */
+/*     $NetBSD: eval.c,v 1.138 2017/05/09 04:08:37 kre Exp $   */
 
 /*-
  * Copyright (c) 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)eval.c     8.9 (Berkeley) 6/8/95";
 #else
-__RCSID("$NetBSD: eval.c,v 1.137 2017/05/09 03:41:18 kre Exp $");
+__RCSID("$NetBSD: eval.c,v 1.138 2017/05/09 04:08:37 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -476,8 +476,7 @@
                                        else
                                                ncp = NULL;
                                        evaltree(cp->nclist.body,
-                                           ncp ? (flags & ~EV_EXIT) | EV_MORE
-                                               : flags );
+                                           ncp ? (flags | EV_MORE) : flags);
                                        status = exitstatus;
                                        cp = ncp;
                                }



Home | Main Index | Thread Index | Old Index