summaryrefslogtreecommitdiffstats
path: root/src/m_minishell.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-30 19:17:05 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-30 19:17:05 +0200
commitced3be528b52b59ad613f282e37d653c16ef85d9 (patch)
treec50b34c0d8937dd402e7d7e5ba14cb5ad77a87f8 /src/m_minishell.c
parentRemoved todo (diff)
download42-minishell-ced3be528b52b59ad613f282e37d653c16ef85d9.tar.gz
42-minishell-ced3be528b52b59ad613f282e37d653c16ef85d9.tar.bz2
42-minishell-ced3be528b52b59ad613f282e37d653c16ef85d9.tar.xz
42-minishell-ced3be528b52b59ad613f282e37d653c16ef85d9.tar.zst
42-minishell-ced3be528b52b59ad613f282e37d653c16ef85d9.zip
I'm retarded
Diffstat (limited to '')
-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);