summaryrefslogtreecommitdiffstats
path: root/src/m_minishell.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-03 19:00:47 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-03 19:00:47 +0200
commitbfaf4c53a8406ea0bfbd8699807b567a5322a03f (patch)
treeb8ce7d07b3094de0c4ba98160f35cf7e64eeae1d /src/m_minishell.c
parentAdded $ for varname (diff)
download42-minishell-bfaf4c53a8406ea0bfbd8699807b567a5322a03f.tar.gz
42-minishell-bfaf4c53a8406ea0bfbd8699807b567a5322a03f.tar.bz2
42-minishell-bfaf4c53a8406ea0bfbd8699807b567a5322a03f.tar.xz
42-minishell-bfaf4c53a8406ea0bfbd8699807b567a5322a03f.tar.zst
42-minishell-bfaf4c53a8406ea0bfbd8699807b567a5322a03f.zip
Export is working
Diffstat (limited to 'src/m_minishell.c')
-rw-r--r--src/m_minishell.c9
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);