summaryrefslogtreecommitdiffstats
path: root/src/ft_s_lcom.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-25 18:19:52 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-25 18:19:52 +0200
commit16490a5e3d03b8fa75746c874c3c3855e6ce11b9 (patch)
tree1ce152e29ee05ad7e040bdd3fca924e1d4a9327e /src/ft_s_lcom.c
parentBug fix (diff)
download42-minishell-16490a5e3d03b8fa75746c874c3c3855e6ce11b9.tar.gz
42-minishell-16490a5e3d03b8fa75746c874c3c3855e6ce11b9.tar.bz2
42-minishell-16490a5e3d03b8fa75746c874c3c3855e6ce11b9.tar.xz
42-minishell-16490a5e3d03b8fa75746c874c3c3855e6ce11b9.tar.zst
42-minishell-16490a5e3d03b8fa75746c874c3c3855e6ce11b9.zip
k
Diffstat (limited to '')
-rw-r--r--src/ft_s_lcom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_s_lcom.c b/src/ft_s_lcom.c
index 2bf4622..33ad5da 100644
--- a/src/ft_s_lcom.c
+++ b/src/ft_s_lcom.c
@@ -33,7 +33,9 @@ static int8_t
ft_strlcpy((*lcom)->com, words[0], ft_strlen(words[0]) + 1);
while(words[i])
{
- if (ft_ischarset("<>0123456789", words[i][0]))
+ /* TODO: cut fd number "msh ~> echo a 2>file" */
+ /* ^ */
+ if (ft_ischarset("<>", words[i][0]))
break ;
i++;
}