From c293dfa39ef25e37d889206cf5bc47d91e330869 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 25 Apr 2020 17:35:48 +0200 Subject: Now handles -c option --- src/ft_m_loop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ft_m_loop.c') diff --git a/src/ft_m_loop.c b/src/ft_m_loop.c index d902d93..7f805a2 100644 --- a/src/ft_m_loop.c +++ b/src/ft_m_loop.c @@ -14,9 +14,7 @@ #include #include -#include "ft_d_enum.h" #include "ft_e_lcom.h" -#include "ft_m_loop.h" #include "ft_m_prompt.h" #include "ft_p_line.h" #include "ft_s_lcom.h" @@ -38,6 +36,8 @@ uint8_t ft_memdel((void*)&line); ft_e_lcom(msh); ft_lcom_clear(&msh->curr); + /* TODO: segv on ';' terminated lines "msh ~> echo qwe;" */ + /* TODO: (null): Bad address on "msh ~> echo a > asd; cat < asd" but not on "msh ~> echo a > asd; cat asd" */ /* TODO: GNL 25 leak on "msh ~> exit" */ /* TODO: "msh ~> some command \": re GNL into ft_nrealloc */ /* TODO: the chad pipes | */ @@ -48,5 +48,5 @@ uint8_t ft_memdel((void*)&line); } } - return (FT_RET_FINE); + return (msh->ret); } -- cgit v1.2.3