summaryrefslogtreecommitdiffstats
path: root/src/minishell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/minishell.c')
-rw-r--r--src/minishell.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/minishell.c b/src/minishell.c
deleted file mode 100644
index ee79f8f..0000000
--- a/src/minishell.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* minishell.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */
-/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */
-/* */
-/* ************************************************************************** */
-
-#include <libft.h>
-#include <stdint.h>
-#include <unistd.h>
-#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"
-
-int
- main(int argc,
- char *const argv[],
- char *const envp[])
-{
- t_msh *msh;
- int32_t ret;
-
- /* TODO: increment $SHLVL */
- /* 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)))
- {
- ft_dprintf(2, "%s\n", strerror(errno));
- return (FT_RET_ALLOC);
- }
- ret = ft_m_argv(argc, argv, msh);
- ft_s_destroy(msh);
- return (ret);
-}
-
-/*
-** ====== INFO ======
-** Files prefixes info
-** -------------------
-** ft_ -> 42
-** b_ -> builtins related
-** d_ -> defines related
-** e_ -> exec related
-** f_ -> failure related
-** m_ -> core minishell related
-** p_ -> parse related
-** s_ -> structs related
-** u_ -> utils related
-** v_ -> general purpose variables related
-*/