summaryrefslogtreecommitdiffstats
path: root/src/ft_p_lcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_p_lcom.c')
-rw-r--r--src/ft_p_lcom.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ft_p_lcom.c b/src/ft_p_lcom.c
index c7bee3c..227ab97 100644
--- a/src/ft_p_lcom.c
+++ b/src/ft_p_lcom.c
@@ -25,7 +25,7 @@ static void
ft_rdr_err_check(char *ptr,
t_lcom **link)
{
- if ((*link)->redir == -1 && ft_ischarset(">", *(ptr + 1)))
+ if ((*link)->redir == -1 && ft_ischarset("><", *(ptr + 1)))
{
/* TODO: syntax err */
}
@@ -104,8 +104,8 @@ 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" */
+ /* hint: bash only handles the last one */
+ /* TODO: handle "msh ~> cat < Makefile >qwe" | gl hf */
}
if ((*link)->redir > 0)
{
@@ -132,6 +132,7 @@ int8_t
i = 0;
if (!(words = ft_split(line, ';')))
return (-1);
+ ft_printf("words1 (%s) | words2 (%s)\n", *words, *(words + 1));
while (i <= count)
{
if (!(link = ft_lcom_new(words[i])))