diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-25 16:04:09 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-25 16:04:09 +0200 |
commit | 0fd6f10b8e74257db5b140f74b7c568f9c7d79c1 (patch) | |
tree | 1371cdec6cbc9359eb34d77a2a3c1c27d78a679a /src | |
parent | Nice redirs (diff) | |
download | 42-minishell-0fd6f10b8e74257db5b140f74b7c568f9c7d79c1.tar.gz 42-minishell-0fd6f10b8e74257db5b140f74b7c568f9c7d79c1.tar.bz2 42-minishell-0fd6f10b8e74257db5b140f74b7c568f9c7d79c1.tar.xz 42-minishell-0fd6f10b8e74257db5b140f74b7c568f9c7d79c1.tar.zst 42-minishell-0fd6f10b8e74257db5b140f74b7c568f9c7d79c1.zip |
(fd)>qwe fd agregation redir works
Diffstat (limited to '')
-rw-r--r-- | src/ft_m_loop.c | 2 | ||||
-rw-r--r-- | src/ft_p_lcom.c | 1 | ||||
-rw-r--r-- | src/ft_s_lcom.c | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_m_loop.c b/src/ft_m_loop.c index 5c4ec05..d902d93 100644 --- a/src/ft_m_loop.c +++ b/src/ft_m_loop.c @@ -38,10 +38,10 @@ uint8_t ft_memdel((void*)&line); ft_e_lcom(msh); ft_lcom_clear(&msh->curr); - /* TODO: handle segv on spaces only "msh ~> " */ /* TODO: GNL 25 leak on "msh ~> exit" */ /* TODO: "msh ~> some command \": re GNL into ft_nrealloc */ /* TODO: the chad pipes | */ + /* TODO: a histfile would be nice */ } else { diff --git a/src/ft_p_lcom.c b/src/ft_p_lcom.c index ee2ec89..c7bee3c 100644 --- a/src/ft_p_lcom.c +++ b/src/ft_p_lcom.c @@ -105,6 +105,7 @@ int8_t ptr++; /* TODO: handle correctly multiples "msh ~> echo qwe > qwe > asd >> zxc > qweasdzxc" */ /* hint: bash only handles the last onke */ + /* TODO: handle "msh ~> cat < Makefile >qwe" */ } if ((*link)->redir > 0) { diff --git a/src/ft_s_lcom.c b/src/ft_s_lcom.c index d05d84c..2bf4622 100644 --- a/src/ft_s_lcom.c +++ b/src/ft_s_lcom.c @@ -33,7 +33,6 @@ static int8_t ft_strlcpy((*lcom)->com, words[0], ft_strlen(words[0]) + 1); while(words[i]) { - /* TODO: better <> cut ex: "msh ~> echo qwe>qwe" | gl hf */ if (ft_ischarset("<>0123456789", words[i][0])) break ; i++; |