f686d7
From 7e4833e2341463c660655aa76e6a90f455021726 Mon Sep 17 00:00:00 2001
f686d7
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
f686d7
Date: Fri, 18 Oct 2013 23:42:07 +0100
f686d7
Subject: [PATCH 1/2] 31846: fix NOEXEC option in execsimple() optimisation
f686d7
f686d7
Upstream-commit: 8879c46a4897a0e347455334fc6b6732c203a220
f686d7
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
f686d7
---
f686d7
 Src/exec.c | 3 +++
f686d7
 1 file changed, 3 insertions(+)
f686d7
f686d7
diff --git a/Src/exec.c b/Src/exec.c
f686d7
index 1ecbc39..51e8d09 100644
f686d7
--- a/Src/exec.c
f686d7
+++ b/Src/exec.c
f686d7
@@ -1079,6 +1079,9 @@ execsimple(Estate state)
f686d7
     if (errflag)
f686d7
 	return (lastval = 1);
f686d7
 
f686d7
+    if (!isset(EXECOPT))
f686d7
+	return lastval = 0;
f686d7
+
f686d7
     /* In evaluated traps, don't modify the line number. */
f686d7
     if (!IN_EVAL_TRAP() && !ineval && code)
f686d7
 	lineno = code - 1;
f686d7
-- 
f686d7
2.1.0
f686d7
f686d7
f686d7
From 15500cd645958d2de544e851dabf7010199f7cf9 Mon Sep 17 00:00:00 2001
f686d7
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
f686d7
Date: Sat, 19 Oct 2013 23:08:24 +0100
f686d7
Subject: [PATCH 2/2] Use VERBOSE option in execstring()
f686d7
f686d7
Upstream-commit: 9a044f1a6ad4ecfdfeff2f89e1685a1d622cb029
f686d7
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
f686d7
---
f686d7
 Src/exec.c | 5 +++++
f686d7
 1 file changed, 5 insertions(+)
f686d7
f686d7
diff --git a/Src/exec.c b/Src/exec.c
f686d7
index 51e8d09..08e4b7d 100644
f686d7
--- a/Src/exec.c
f686d7
+++ b/Src/exec.c
f686d7
@@ -1019,6 +1019,11 @@ execstring(char *s, int dont_change_job, int exiting, char *context)
f686d7
     Eprog prog;
f686d7
 
f686d7
     pushheap();
f686d7
+    if (isset(VERBOSE)) {
f686d7
+	zputs(s, stderr);
f686d7
+	fputc('\n', stderr);
f686d7
+	fflush(stderr);
f686d7
+    }
f686d7
     if ((prog = parse_string(s, 0)))
f686d7
 	execode(prog, dont_change_job, exiting, context);
f686d7
     popheap();
f686d7
-- 
f686d7
2.1.0
f686d7