This commit is contained in:
gazhonsepaskwa
2025-02-12 15:47:26 +01:00
parent 4ba34d37b5
commit e6ef9f494b
3 changed files with 19 additions and 3 deletions

View File

@@ -11,6 +11,7 @@
/* ************************************************************************** */
#include "../../../includes/minishell.h"
#include <string.h>
static int last_tok_subsh(t_node *lst)
{
@@ -27,8 +28,12 @@ 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) && !ft_strncmp(lst->val, ")",
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))
return (1);
lst = lst->next;