Bash  5.0-beta2
Bash - Bourne Again shell
builtins.h File Reference
#include "config.h"
#include "command.h"
#include "general.h"

Go to the source code of this file.

Data Structures

struct  builtin
 

Macros

#define BUILTIN_ENABLED   0x01 /* This builtin is enabled. */
 
#define BUILTIN_DELETED   0x02 /* This has been deleted with enable -d. */
 
#define STATIC_BUILTIN   0x04 /* This builtin is not dynamically loaded. */
 
#define SPECIAL_BUILTIN   0x08 /* This is a Posix `special' builtin. */
 
#define ASSIGNMENT_BUILTIN   0x10 /* This builtin takes assignment statements. */
 
#define POSIX_BUILTIN   0x20 /* This builtins is special in the Posix command search order. */
 
#define LOCALVAR_BUILTIN   0x40 /* This builtin creates local variables */
 
#define BASE_INDENT   4
 

Variables

int num_shell_builtins
 
struct builtin static_shell_builtins []
 
struct builtinshell_builtins
 
struct builtincurrent_builtin
 

Data Structure Documentation

◆ builtin

struct builtin

Definition at line 52 of file builtins.h.

Data Fields
char * name
sh_builtin_func_t * function
int flags
char *const * long_doc
const char * short_doc
char * handle

Macro Definition Documentation

◆ BUILTIN_ENABLED

#define BUILTIN_ENABLED   0x01 /* This builtin is enabled. */

Definition at line 41 of file builtins.h.

Referenced by builtin_address_internal().

◆ BUILTIN_DELETED

#define BUILTIN_DELETED   0x02 /* This has been deleted with enable -d. */

Definition at line 42 of file builtins.h.

Referenced by builtin_address_internal().

◆ STATIC_BUILTIN

#define STATIC_BUILTIN   0x04 /* This builtin is not dynamically loaded. */

Definition at line 43 of file builtins.h.

◆ SPECIAL_BUILTIN

#define SPECIAL_BUILTIN   0x08 /* This is a Posix `special' builtin. */

Definition at line 44 of file builtins.h.

Referenced by find_special_builtin().

◆ ASSIGNMENT_BUILTIN

#define ASSIGNMENT_BUILTIN   0x10 /* This builtin takes assignment statements. */

Definition at line 45 of file builtins.h.

Referenced by fix_assignment_words(), and yyparse().

◆ POSIX_BUILTIN

#define POSIX_BUILTIN   0x20 /* This builtins is special in the Posix command search order. */

Definition at line 46 of file builtins.h.

◆ LOCALVAR_BUILTIN

#define LOCALVAR_BUILTIN   0x40 /* This builtin creates local variables */

Definition at line 47 of file builtins.h.

Referenced by fix_assignment_words().

◆ BASE_INDENT

#define BASE_INDENT   4

Definition at line 49 of file builtins.h.

Variable Documentation

◆ num_shell_builtins

int num_shell_builtins

◆ static_shell_builtins

struct builtin static_shell_builtins[]

◆ shell_builtins

◆ current_builtin