Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Stop forcing the -e option off in the subshell create...



details:   https://anonhg.NetBSD.org/src/rev/e1b5d81fd908
branches:  trunk
changeset: 1009440:e1b5d81fd908
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Apr 23 09:01:33 2020 +0000

description:
Stop forcing the -e option off in the subshell createds for a command
substitution.  This was inherited in the big "-e" fixup patch set (rev 1.50)
of Jan 2000, which came from dash.   dash no longer acts this way.

diffstat:

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

diffs (26 lines):

diff -r 233b1a04d220 -r e1b5d81fd908 bin/sh/eval.c
--- a/bin/sh/eval.c     Thu Apr 23 08:09:25 2020 +0000
+++ b/bin/sh/eval.c     Thu Apr 23 09:01:33 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eval.c,v 1.178 2020/02/04 16:06:59 kre Exp $   */
+/*     $NetBSD: eval.c,v 1.179 2020/04/23 09:01:33 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.178 2020/02/04 16:06:59 kre Exp $");
+__RCSID("$NetBSD: eval.c,v 1.179 2020/04/23 09:01:33 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -771,7 +771,6 @@
                        FORCEINTON;
                        close(pip[0]);
                        movefd(pip[1], 1);
-                       eflag = 0;
                        evaltree(n, EV_EXIT);
                        /* NOTREACHED */
                }



Home | Main Index | Thread Index | Old Index