summaryrefslogtreecommitdiffstats
path: root/src/m_minishell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_minishell.c')
-rw-r--r--src/m_minishell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/m_minishell.c b/src/m_minishell.c
index 6e656a6..e14dbdc 100644
--- a/src/m_minishell.c
+++ b/src/m_minishell.c
@@ -23,6 +23,7 @@
#include "s_destroy.h"
#include "u_vars.h"
#include "u_vars_next.h"
+#include "s_lvars.h"
int
main(int argc,
@@ -42,6 +43,7 @@ int
u_subst_var_value("$SHLVL",
str = ft_itoa(ft_atoi(u_get_var_value("$SHLVL", msh)) + 1), msh);
ft_memdel((void*)&str);
+ lvars_add_front(&msh->vars, lvars_new("var", "value"));
ret = m_argv(argc, argv, msh);
s_destroy(msh);
return (ret);