summaryrefslogtreecommitdiffstats
path: root/src/m_argv.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-18 19:27:57 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-18 19:27:57 +0200
commitc4617f7a2499bd81c49963291688977e3153d00f (patch)
tree75eb5c32f3d0b136f2f823217e0ee177b2fc2c94 /src/m_argv.c
parentHUGE pain in the ass finally over (diff)
download42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.gz
42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.bz2
42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.xz
42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.zst
42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.zip
prompt rice
Diffstat (limited to '')
-rw-r--r--src/m_argv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/m_argv.c b/src/m_argv.c
index 25b386e..46e2640 100644
--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -18,6 +18,7 @@
#include "f_fail.h"
#include "d_define.h"
#include "m_comm.h"
+#include "m_init.h"
#include "m_loop.h"
#include "m_mshrc.h"
#include "s_struct.h"
@@ -31,6 +32,7 @@ uint8_t
if (argc == 1)
{
+ m_init_custom_vars(msh);
msh->ret = m_source_mshrc(msh);
msh->ret = m_loop(STDIN_FILENO, msh);
}
@@ -38,7 +40,7 @@ uint8_t
{
if (*(argv + 2) == NULL)
{
- ft_dprintf(2, "%s: %s: option requires an argument\n",
+ ft_dprintf(STDERR_FILENO, "%s: %s: option requires an argument\n",
msh->shname, FT_OPT_COMMAND);
return (2);
}