diff options
author | Dan Pasanen <dan.pasanen@gmail.com> | 2014-10-02 14:08:59 -0500 |
---|---|---|
committer | Dan Pasanen <dan.pasanen@gmail.com> | 2014-10-02 14:25:19 -0500 |
commit | c6e37862a742387dafd6e175c6d9cb38df5f81e3 (patch) | |
tree | 00623bbab3f1c1fe7fd8a3f85823333663d7c71e /builtins/eval.c | |
parent | 90a39f32de629ce849276388300f718db331c8b8 (diff) | |
download | android_external_bash-c6e37862a742387dafd6e175c6d9cb38df5f81e3.tar.gz android_external_bash-c6e37862a742387dafd6e175c6d9cb38df5f81e3.tar.bz2 android_external_bash-c6e37862a742387dafd6e175c6d9cb38df5f81e3.zip |
Set up build for android
Diffstat (limited to 'builtins/eval.c')
-rw-r--r-- | builtins/eval.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/builtins/eval.c b/builtins/eval.c new file mode 100644 index 0000000..e370677 --- /dev/null +++ b/builtins/eval.c @@ -0,0 +1,28 @@ +/* eval.c, created from eval.def. */ +#line 22 "./eval.def" + +#line 34 "./eval.def" + +#include <config.h> +#if defined (HAVE_UNISTD_H) +# ifdef _MINIX +# include <sys/types.h> +# endif +# include <unistd.h> +#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 `--' */ + + return (list ? evalstring (string_list (list), "eval", SEVAL_NOHIST) : EXECUTION_SUCCESS); +} |