From e13eff066921d2f58ffbdb419221f73f82d006b9 Mon Sep 17 00:00:00 2001 From: Quinten Date: Sun, 23 Feb 2025 13:12:06 +0100 Subject: [PATCH] util --- src/parser/parser_get_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/parser_get_commands.c b/src/parser/parser_get_commands.c index cbf115e..6725b8c 100644 --- a/src/parser/parser_get_commands.c +++ b/src/parser/parser_get_commands.c @@ -14,7 +14,7 @@ static int is_command_token(t_token *token) { - return (token->type < 3 || token->type == T_REDIRECT_IN || token->type ==T_HEREDOC || token->type == T_REDIRECT_OUT || token->type == T_APPEND_OUT); + return (token->type < 3 || redirect_token_type(token)); } t_list *parser_get_commands(t_minishell *minishell)