Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git] / builtins / eval.def
index ee9a23d..5e824c9 100644 (file)
@@ -53,6 +53,5 @@ eval_builtin (list)
     return (EX_USAGE);
   list = loptend;      /* skip over possible `--' */
 
-  /* Note that parse_and_execute () frees the string it is passed. */
-  return (list ? parse_and_execute (string_list (list), "eval", SEVAL_NOHIST) : EXECUTION_SUCCESS);
+  return (list ? evalstring (string_list (list), "eval", SEVAL_NOHIST) : EXECUTION_SUCCESS);
 }