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)