diff --git a/parser.c b/parser.c index 9e9b7a2..3c26784 100755 --- a/parser.c +++ b/parser.c @@ -6,7 +6,7 @@ /* By: mea +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/05/02 16:09:25 by narnaud #+# #+# */ -/* Updated: 2022/05/11 01:13:20 by narnaud@stude ### ########.fr */ +/* Updated: 2022/05/11 13:53:47 by narnaud@stude ### ########.fr */ /* */ /* ************************************************************************** */ @@ -43,7 +43,7 @@ static size_t count_arguments(t_token *tok) size_t ret; ret = 0; - while (tok && tok->type != PIPE) + while (tok && tok->type < PIPE) { if (tok->type == WORD) ret++;