summaryrefslogtreecommitdiffstats
path: root/src/minishell.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 16:48:19 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 16:48:19 +0200
commit86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe (patch)
treee9c89ec16372d95bf10e96e6707d2258b0ea1b68 /src/minishell.c
parentUpdate (diff)
download42-minishell-86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe.tar.gz
42-minishell-86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe.tar.bz2
42-minishell-86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe.tar.xz
42-minishell-86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe.tar.zst
42-minishell-86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe.zip
Good
Diffstat (limited to '')
-rw-r--r--src/minishell.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/minishell.c b/src/minishell.c
index cc0798f..5d97ed6 100644
--- a/src/minishell.c
+++ b/src/minishell.c
@@ -13,6 +13,7 @@
#include <libft.h>
#include "minishell.h"
#include "ft_d_enum.h"
+#include "ft_m_prompt.h"
#include "ft_s_struct.h"
#include "ft_s_init.h"
#include "ft_s_destroy.h"
@@ -26,16 +27,18 @@ main(int argc,
(void)argc;
(void)argv;
+ (void)envp;
if (!(msh = ft_init_msh()))
{
return (FT_RET_ALLOC);
}
msh->envp = envp;
- while (*msh->envp)
- {
- ft_printf("%s\n", *msh->envp);
- msh->envp++;
- }
+ ft_m_prompt(msh);
+ /* while (*msh->envp) */
+ /* { */
+ /* ft_printf("%s\n", *msh->envp); */
+ /* msh->envp++; */
+ /* } */
ft_s_destroy(msh);
return (FT_RET_FINE);
}
@@ -48,6 +51,7 @@ main(int argc,
** b_ -> builtins related
** d_ -> defines related
** e_ -> exec related
+** m_ -> core minishell related
** p_ -> parse related
** s_ -> structs related
*/