subsh redir

This commit is contained in:
gazhonsepaskwa
2025-02-05 13:44:43 +01:00
parent 001b4b67e2
commit 2369795bd2
4 changed files with 69 additions and 20 deletions

View File

@@ -16,7 +16,10 @@ static int last_tok_subsh(t_node *lst)
{
while (lst)
{
if (lst->next == NULL && !ft_strncmp(lst->val, ")", 1))
if ((lst->next == NULL
|| lst->next->pressision == D_RED_R
|| lst->next->pressision == RED_R)
&& !ft_strncmp(lst->val, ")", 1))
return (1);
lst = lst->next;
}