summaryrefslogtreecommitdiffstats
path: root/src/ft_s_lcom.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 01:02:29 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 01:02:29 +0200
commitfa1bce6a580d380ef779c688d6ec3f0d78c0c08b (patch)
treeee26b04623b5deeeb88d4304de7f39947257d1e4 /src/ft_s_lcom.c
parentNow time to pipe(2) (diff)
download42-minishell-fa1bce6a580d380ef779c688d6ec3f0d78c0c08b.tar.gz
42-minishell-fa1bce6a580d380ef779c688d6ec3f0d78c0c08b.tar.bz2
42-minishell-fa1bce6a580d380ef779c688d6ec3f0d78c0c08b.tar.xz
42-minishell-fa1bce6a580d380ef779c688d6ec3f0d78c0c08b.tar.zst
42-minishell-fa1bce6a580d380ef779c688d6ec3f0d78c0c08b.zip
nigga be eating my prompt
Diffstat (limited to '')
-rw-r--r--src/ft_s_lcom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ft_s_lcom.c b/src/ft_s_lcom.c
index b31f5e5..029a5c4 100644
--- a/src/ft_s_lcom.c
+++ b/src/ft_s_lcom.c
@@ -30,6 +30,7 @@ static int8_t
ft_strlcpy((*lcom)->com, words[0], ft_strlen(words[0]) + 1);
while(words[i + 1])
{
+ /* TODO: better <> cut ex: "msh ~> echo qwe>qwe" | gl hf */
if (ft_ischarset("<>", words[i + 1][0]))
break ;
i++;