This commit is contained in:
gazhonsepaskwa
2025-02-14 10:13:23 +01:00
parent b43ff8fc26
commit 93b69e815f
7 changed files with 170 additions and 107 deletions

View File

@@ -29,12 +29,11 @@ static int last_tok_redir(t_node *lst)
while (lst)
{
if ((lst->next == NULL
|| lst->next->pressision == D_RED_R
|| lst->next->pressision == RED_R
|| lst->next->pressision == RED_L
|| lst->next->pressision == HEREDOC
)&& !ft_strncmp(lst->val, ")",
1))
|| lst->next->pressision == D_RED_R
|| lst->next->pressision == RED_R
|| lst->next->pressision == RED_L
|| lst->next->pressision == HEREDOC)
&& !ft_strncmp(lst->val, ")", 1))
return (1);
lst = lst->next;
}