From 62a1c19e2095a8dd0fb66f4e29dce37eae0c5d69 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 18 Dec 2020 16:00:22 +0100 Subject: Push --- src/m_argv.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/m_argv.c') diff --git a/src/m_argv.c b/src/m_argv.c index 525439b..859fa72 100644 --- a/src/m_argv.c +++ b/src/m_argv.c @@ -16,6 +16,8 @@ #include #include +#include "c_init.h" +#include "c_utils_next.h" #include "f_fail.h" #include "d_define.h" #include "m_comm.h" @@ -69,6 +71,8 @@ unsigned char m_argv(int argc, char *const argv[], t_msh *msh) msh->prev_hist = m_get_prev_hist(msh); msh->ret = m_source_mshrc(msh); msh->fd = STDIN_FILENO; + c_get_msh(1, msh); + c_set_ptr(TRUE, 0, msh); msh->ret = m_loop(STDIN_FILENO, msh); } else if (argc > 1 && ft_strncmp(*(argv + 1), M_OPT_COMMAND, 3) == 0) -- cgit v1.2.3