Minishell
 
Loading...
Searching...
No Matches
Basic functions

Basics functions to execute a minishell properly. More...

Functions

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.
 

Detailed Description

Basics functions to execute a minishell properly.

Function Documentation

◆ 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
Here is the call graph for this function:

◆ 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
datadata structure already set
Returns
int
Here is the call graph for this function:

◆ 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
datadata structure already set
Here is the call graph for this function: