From ec8113b9861375e4e17b3307372569d429dec814 Mon Sep 17 00:00:00 2001
From: Chet Ramey <chet.ramey@case.edu>
Date: Tue, 13 Dec 2022 12:43:50 -0500
Subject: Bash-5.2 patch 15: fix too-aggressive optimizing forks out of
 subshell commands

---
 builtins/eval.def | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'builtins/eval.def')

diff --git a/builtins/eval.def b/builtins/eval.def
index a92b538f..f459bce3 100644
--- a/builtins/eval.def
+++ b/builtins/eval.def
@@ -53,5 +53,5 @@ eval_builtin (list)
     return (EX_USAGE);
   list = loptend;	/* skip over possible `--' */
 
-  return (list ? evalstring (string_list (list), "eval", SEVAL_NOHIST) : EXECUTION_SUCCESS);
+  return (list ? evalstring (string_list (list), "eval", SEVAL_NOHIST|SEVAL_NOOPTIMIZE) : EXECUTION_SUCCESS);
 }
-- 
cgit v1.2.1

