diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-25 18:19:52 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-25 18:19:52 +0200 |
commit | 16490a5e3d03b8fa75746c874c3c3855e6ce11b9 (patch) | |
tree | 1ce152e29ee05ad7e040bdd3fca924e1d4a9327e /src/ft_s_lcom.c | |
parent | Bug fix (diff) | |
download | 42-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.c | 4 |
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++; } |