diff options
Diffstat (limited to 'src/m_minishell.c')
-rw-r--r-- | src/m_minishell.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/m_minishell.c b/src/m_minishell.c index b4a8876..dd47ac3 100644 --- a/src/m_minishell.c +++ b/src/m_minishell.c @@ -21,8 +21,6 @@ #include "s_struct.h" #include "s_init.h" #include "s_destroy.h" -#include "u_vars.h" -#include "u_vars_next.h" #include "s_lvars.h" int @@ -31,8 +29,6 @@ int char *const envp[]) { int32_t ret; - char *str_one; - char *str_two; t_msh *msh; /* TODO: handle general variables | $var */ @@ -41,11 +37,6 @@ int ft_dprintf(2, "%s\n", strerror(errno)); return (FT_RET_ALLOC); } - u_subst_var_value("$SHLVL", - str_one =ft_itoa( - ft_atoi(str_two = u_get_var_value("$SHLVL", msh)) + 1), msh); - ft_memdel((void*)&str_one); - ft_memdel((void*)&str_two); /* TODO: delet this */ ret = m_argv(argc, argv, msh); s_destroy(msh); |