maxishell
Implementation of a shell for Linux-like systems
|
#include "tokens.h"
Go to the source code of this file.
Functions | |
char * | expand_env_and_loc_var (char *arg, t_ms_data *data) |
void | final_quote_removal (int arg_count, t_ast *command_node) |
char * | get_env_variable (char *arg, t_ms_data *data) |
void | handle_trailing_quote (char *arg) |
char * | get_exit_status (t_ms_data *data) |
char * expand_env_and_loc_var | ( | char * | arg, |
t_ms_data * | data | ||
) |
Definition at line 45 of file loc_env_var_handler_utils_utils.c.
References exit_status_adj(), ft_strcmp(), ft_strdup(), get_env_variable(), get_exit_status(), and handle_trailing_quote().
Referenced by ev_loop().
void final_quote_removal | ( | int | arg_count, |
t_ast * | command_node | ||
) |
Definition at line 21 of file loc_env_var_handler_utils_utils.c.
References s_ast::args, ft_print_2d_arr(), ft_strlen(), and ft_strndup().
char * get_env_variable | ( | char * | arg, |
t_ms_data * | data | ||
) |
Definition at line 77 of file loc_env_var_handler_utils_utils.c.
References s_ms_data::envp, ft_strdup(), get_env(), and s_ms_data::shell_variables.
Referenced by expand_env_and_loc_var().
char * get_exit_status | ( | t_ms_data * | data | ) |
Definition at line 61 of file loc_env_var_handler_utils_utils.c.
References ft_strdup(), get_shell_variable(), and s_ms_data::shell_variables.
Referenced by expand_env_and_loc_var().
void handle_trailing_quote | ( | char * | arg | ) |
Definition at line 71 of file loc_env_var_handler_utils_utils.c.
References ft_strlen().
Referenced by expand_env_and_loc_var().