|
maxishell
Implementation of a shell for Linux-like systems
|

Go to the source code of this file.
Functions | |
| int | handle_add_set_shell_variable (t_env **shell_var, char *line) |
| int | handle_get_shell_variable (t_ms_data *data, const char *key) |
| int | handle_shell_variable (t_ast *node, t_ms_data *data) |
| void | shell_variable_update (t_ms_data *data, int status) |
| int handle_add_set_shell_variable | ( | t_env ** | shell_var, |
| char * | line | ||
| ) |
Definition at line 24 of file shell_variables.c.
References add_shell_var_node(), ft_remove_quotes(), ft_strcdup(), ft_strchr(), and set_shell_var().
Referenced by handle_local_vars(), and init_ms_data().


| int handle_get_shell_variable | ( | t_ms_data * | data, |
| const char * | key | ||
| ) |
Definition at line 47 of file shell_variables.c.
References ft_putstr_fd(), get_env(), s_ms_data::shell_variables, and s_ms_data::std_out.
Referenced by handle_shell_variable().


Definition at line 64 of file shell_variables.c.
References s_ast::args, handle_get_shell_variable(), s_ast::left, and s_ast::right.

| void shell_variable_update | ( | t_ms_data * | data, |
| int | status | ||
| ) |
Definition at line 71 of file shell_variables.c.
References s_ms_data::exit_status, ft_itoa(), set_shell_var(), and s_ms_data::shell_variables.
