Basics functions to execute a minishell properly.
More...
|
int | minishell (t_data *data) |
| Minishell that handles all the shell functions.
|
|
int | is_interactive (void) |
| Function to read the context where this function is called Verify if it's used in a tty or not,.
|
|
int | short_minishell_no_tty (t_data *data) |
| Executes the shell in a restricted area where there is no prompt Should work exactly as the minishell function.
|
|
char * | get_prompt_message (t_garbage *garbage) |
| Build the prompt message If an error occurs, returns the static default prompt message.
|
|
Basics functions to execute a minishell properly.
◆ get_prompt_message()
char * get_prompt_message |
( |
t_garbage * | garbage | ) |
|
Build the prompt message If an error occurs, returns the static default prompt message.
- Returns
- char* prompt message
◆ is_interactive()
int is_interactive |
( |
void | | ) |
|
Function to read the context where this function is called Verify if it's used in a tty or not,.
- Returns
- int 0 OK, 1 otherwise
◆ minishell()
int minishell |
( |
t_data * | data | ) |
|
Minishell that handles all the shell functions.
- Parameters
-
data | data structure already set |
- Returns
- int
◆ short_minishell_no_tty()
int short_minishell_no_tty |
( |
t_data * | data | ) |
|
Executes the shell in a restricted area where there is no prompt Should work exactly as the minishell function.
- Parameters
-
data | data structure already set |