From 80917cae7cd65a0a172b00af71b63b522c2d6121 Mon Sep 17 00:00:00 2001 From: lperrey Date: Tue, 21 Dec 2021 00:01:51 +0100 Subject: [PATCH] fixed mistake in rules_command.c --- srcs/parsing/valid_syntax/rules_command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcs/parsing/valid_syntax/rules_command.c b/srcs/parsing/valid_syntax/rules_command.c index d001845..7a314c2 100644 --- a/srcs/parsing/valid_syntax/rules_command.c +++ b/srcs/parsing/valid_syntax/rules_command.c @@ -6,7 +6,7 @@ /* By: lperrey +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/10/24 18:52:05 by lperrey #+# #+# */ -/* Updated: 2021/12/20 21:11:14 by lperrey ### ########.fr */ +/* Updated: 2021/12/20 23:56:09 by lperrey ### ########.fr */ /* */ /* ************************************************************************** */ @@ -67,7 +67,7 @@ int valid_command_rule5(t_token **token_list) { while (valid_io_redirect(token_list)) continue ; - if (valid_command_separator(*token_list)) + if (!valid_command_separator(*token_list)) return (0); return (1); }