summaryrefslogtreecommitdiffstats
path: root/src/minishell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/minishell.c')
-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
*/