Bash  5.0-beta2
Bash - Bourne Again shell
bperl.c File Reference
#include <config.h>
#include <fcntl.h>
#include <errno.h>
#include "builtins.h"
#include "shell.h"

Go to the source code of this file.

Functions

char ** make_builtin_argv ()
 
int perl_main ()
 
 bperl_builtin (WORD_LIST *list)
 

Variables

int errno
 
char ** export_env
 
char * bperl_doc []
 
struct builtin bperl_struct
 

Function Documentation

◆ make_builtin_argv()

char** make_builtin_argv ( )

Referenced by bperl_builtin().

Here is the caller graph for this function:

◆ perl_main()

int perl_main ( )

Referenced by bperl_builtin().

Here is the caller graph for this function:

◆ bperl_builtin()

bperl_builtin ( WORD_LIST list)

Definition at line 21 of file bperl.c.

References c, export_env, free(), make_builtin_argv(), and perl_main().

23 {
24  char **v;
25  int c, r;
26 
27  v = make_builtin_argv(list, &c);
28  r = perl_main(c, v, export_env);
29  free(v);
30 
31  return r;
32 }
int perl_main()
char ** make_builtin_argv()
register GCHAR c
Definition: glob_loop.c:26
char ** export_env
Definition: variables.c:160
void free()
Here is the call graph for this function:

Variable Documentation

◆ errno

int errno

◆ export_env

char** export_env

Definition at line 160 of file variables.c.

Referenced by bperl_builtin(), and execute_disk_command().

◆ bperl_doc

char* bperl_doc[]
Initial value:
= {
"An interface to a perl5 interpreter.",
(char *)0
}

Definition at line 34 of file bperl.c.

◆ bperl_struct

struct builtin bperl_struct
Initial value:
= {
"bperl",
"bperl [perl options] [file ...]",
0
}
bperl_builtin(WORD_LIST *list)
Definition: bperl.c:21
#define BUILTIN_ENABLED
Definition: builtins.h:41
char * bperl_doc[]
Definition: bperl.c:34

Definition at line 39 of file bperl.c.