Source-Changes-HG archive

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

[src/trunk]: src/bin/sh PR bin/48875 - minor correction (well, not so minor) ...



details:   https://anonhg.NetBSD.org/src/rev/477d562d24f1
branches:  trunk
changeset: 345152:477d562d24f1
user:      kre <kre%NetBSD.org@localhost>
date:      Tue May 10 15:14:30 2016 +0000

description:
PR bin/48875 - minor correction (well, not so minor) - commands in loops
must be assumed to have something following, even if the loop itself doesn't,
so redirected fd's around func calls need to be saved.   Should fix etcupdate

diffstat:

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

diffs (27 lines):

diff -r bf5e1f9abe26 -r 477d562d24f1 bin/sh/eval.c
--- a/bin/sh/eval.c     Tue May 10 15:14:03 2016 +0000
+++ b/bin/sh/eval.c     Tue May 10 15:14:30 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eval.c,v 1.125 2016/05/09 21:03:10 kre Exp $   */
+/*     $NetBSD: eval.c,v 1.126 2016/05/10 15:14:30 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.125 2016/05/09 21:03:10 kre Exp $");
+__RCSID("$NetBSD: eval.c,v 1.126 2016/05/10 15:14:30 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -380,7 +380,7 @@
                        if (exitstatus == 0)
                                break;
                }
-               evaltree(n->nbinary.ch2, flags & (EV_TESTED | EV_MORE));
+               evaltree(n->nbinary.ch2, (flags & EV_TESTED) | EV_MORE);
                status = exitstatus;
                if (evalskip)
                        goto skipping;



Home | Main Index | Thread Index | Old Index