Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh Keep redirs for subshells.
details: https://anonhg.NetBSD.org/src/rev/40585042f06d
branches: trunk
changeset: 344198:40585042f06d
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 16 21:20:59 2016 +0000
description:
Keep redirs for subshells.
diffstat:
bin/sh/eval.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8fedd2fcdd7e -r 40585042f06d bin/sh/eval.c
--- a/bin/sh/eval.c Wed Mar 16 21:14:35 2016 +0000
+++ b/bin/sh/eval.c Wed Mar 16 21:20:59 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: eval.c,v 1.118 2016/03/13 15:57:30 christos Exp $ */
+/* $NetBSD: eval.c,v 1.119 2016/03/16 21:20:59 christos 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.118 2016/03/13 15:57:30 christos Exp $");
+__RCSID("$NetBSD: eval.c,v 1.119 2016/03/16 21:20:59 christos Exp $");
#endif
#endif /* not lint */
@@ -487,7 +487,7 @@
INTON;
if (backgnd)
flags &=~ EV_TESTED;
- redirect(n->nredir.redirect, 0);
+ redirect(n->nredir.redirect, REDIR_KEEP);
/* never returns */
evaltree(n->nredir.n, flags | EV_EXIT);
}
Home |
Main Index |
Thread Index |
Old Index