diff options
| -rw-r--r-- | src/ft_e_lcom.c | 1 | ||||
| -rw-r--r-- | src/ft_m_loop.c | 7 | 
2 files changed, 5 insertions, 3 deletions
diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c index 61b9cd7..c499e05 100644 --- a/src/ft_e_lcom.c +++ b/src/ft_e_lcom.c @@ -53,6 +53,7 @@ uint8_t  		if ((bu_id = ft_get_builtin_id(ptr->com, msh))  			< FT_BUILTINS_COUNT)  		{ +			/* TODO: handle exit | bu_id = 6 */  			if ((pid = fork()) == 0)  			{  				if (ptr->redir == 1) diff --git a/src/ft_m_loop.c b/src/ft_m_loop.c index 08bc0e4..6902d0b 100644 --- a/src/ft_m_loop.c +++ b/src/ft_m_loop.c @@ -23,8 +23,8 @@  uint8_t  	ft_m_loop(t_msh *msh)  { -	int8_t	gnl;  	char	*line; +	int8_t	gnl;  	gnl = 1;  	while (gnl > 0) @@ -37,9 +37,10 @@ uint8_t  			ft_memdel((void*)&line);  			ft_e_lcom(msh);  			ft_lcom_clear(&msh->curr); -			/* TODO: GNL leak on "msh ~> exit" */ +			/* TODO: handle segv on spaces only "msh ~>        " */ +			/* TODO: GNL 25 leak on "msh ~> exit" */  			/* TODO: redirect vvv redirect */ -			/* "msh ~> echo qwe >/dev/null; echo *.vscode >> .gitignore" */ +			/* "msh ~> cat < Makefile" aka read to stdin */  			/* TODO: "msh ~> some command \": re GNL into ft_nrealloc */  		}  		else  | 
