From a013d4e66d2545c04e2599aa2e4a4fc50468153d Mon Sep 17 00:00:00 2001 From: cvpcs Date: Thu, 3 Jun 2010 02:20:07 -0500 Subject: first successful build of bash-4.1 --- builtins/eval.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 builtins/eval.c (limited to 'builtins/eval.c') diff --git a/builtins/eval.c b/builtins/eval.c new file mode 100644 index 0000000..0d74d0b --- /dev/null +++ b/builtins/eval.c @@ -0,0 +1,29 @@ +/* eval.c, created from eval.def. */ +#line 22 "./eval.def" + +#line 34 "./eval.def" + +#include +#if defined (HAVE_UNISTD_H) +# ifdef _MINIX +# include +# endif +# include +#endif + +#include "../shell.h" +#include "bashgetopt.h" +#include "common.h" + +/* Parse the string that these words make, and execute the command found. */ +int +eval_builtin (list) + WORD_LIST *list; +{ + if (no_options (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); +} -- cgit v1.1