Added gitignore entries needed to ignore derived objects generated from full build...
[bash.git] / examples / loadables / perl / bperl.c
blob77e3f7c1b1013efba884035a37d6c92f8d924034
1 /*
2 * perl builtin
3 */
4 #include <config.h>
6 #include <fcntl.h>
7 #include <errno.h>
9 #include "builtins.h"
10 #include "shell.h"
12 #ifndef errno
13 extern int errno;
14 #endif
16 extern char **make_builtin_argv ();
17 extern char **export_env;
19 extern int perl_main();
21 bperl_builtin(list)
22 WORD_LIST *list;
24 char **v;
25 int c, r;
27 v = make_builtin_argv(list, &c);
28 r = perl_main(c, v, export_env);
29 free(v);
31 return r;
34 char *bperl_doc[] = {
35 "An interface to a perl5 interpreter.",
36 (char *)0
39 struct builtin bperl_struct = {
40 "bperl",
41 bperl_builtin,
42 BUILTIN_ENABLED,
43 bperl_doc,
44 "bperl [perl options] [file ...]",