diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-12-18 16:00:22 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-12-18 16:00:22 +0100 |
commit | 62a1c19e2095a8dd0fb66f4e29dce37eae0c5d69 (patch) | |
tree | f2e879822c0043495152b4c597d7234e29bfe063 /src/m_argv.c | |
parent | spammingnormcommits (diff) | |
download | 42-minishell-62a1c19e2095a8dd0fb66f4e29dce37eae0c5d69.tar.gz 42-minishell-62a1c19e2095a8dd0fb66f4e29dce37eae0c5d69.tar.bz2 42-minishell-62a1c19e2095a8dd0fb66f4e29dce37eae0c5d69.tar.xz 42-minishell-62a1c19e2095a8dd0fb66f4e29dce37eae0c5d69.tar.zst 42-minishell-62a1c19e2095a8dd0fb66f4e29dce37eae0c5d69.zip |
Pushgnu-compat
Diffstat (limited to 'src/m_argv.c')
-rw-r--r-- | src/m_argv.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <fcntl.h> #include <unistd.h> +#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) |