summaryrefslogtreecommitdiffstats
path: root/src/minishell.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 18:55:07 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 18:55:07 +0200
commit487a66394061f2d14a2fa421302966b5442d643f (patch)
tree34237d4e9cb85f94bcefd46f399d2224dff3f6b3 /src/minishell.c
parentCorrect shell prompt (diff)
download42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.gz
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.bz2
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.xz
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.zst
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.zip
I couldn't see shit
Diffstat (limited to '')
-rw-r--r--src/m_minishell.c (renamed from src/minishell.c)19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/minishell.c b/src/m_minishell.c
index ee79f8f..1e065b4 100644
--- a/src/minishell.c
+++ b/src/m_minishell.c
@@ -1,7 +1,7 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
-/* minishell.c :+: :+: :+: */
+/* m_minishell.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
@@ -16,11 +16,11 @@
#include <string.h>
#include <errno.h>
-#include "ft_f_fail.h"
-#include "ft_m_argv.h"
-#include "ft_s_struct.h"
-#include "ft_s_init.h"
-#include "ft_s_destroy.h"
+#include "f_fail.h"
+#include "m_argv.h"
+#include "s_struct.h"
+#include "s_init.h"
+#include "s_destroy.h"
int
main(int argc,
@@ -34,13 +34,13 @@ int
/* TODO: also set $SHELL | maybe not bash does not set $SHELL */
/* only zsh does */
/* TODO: handle general variables | $var */
- if (!(msh = ft_init_msh(argv, envp)))
+ if (!(msh = init_msh(argv, envp)))
{
ft_dprintf(2, "%s\n", strerror(errno));
return (FT_RET_ALLOC);
}
- ret = ft_m_argv(argc, argv, msh);
- ft_s_destroy(msh);
+ ret = m_argv(argc, argv, msh);
+ s_destroy(msh);
return (ret);
}
@@ -48,7 +48,6 @@ int
** ====== INFO ======
** Files prefixes info
** -------------------
-** ft_ -> 42
** b_ -> builtins related
** d_ -> defines related
** e_ -> exec related