redir subsh bug fix

This commit is contained in:
Nathan Lebrun
2025-02-06 09:34:20 +01:00
parent 045ca9add0
commit e183b95354
4 changed files with 26 additions and 4 deletions

View File

@@ -46,5 +46,12 @@ void create_subsh(t_ast_n *self, t_node *lst, t_msh *msh)
self->redir = ft_calloc(1, sizeof(t_redir));
self->redir[0] = _NR;
create_redir_subsh(lst, self);
// debug
int i = -1;
ft_debug("==== SUBSH REDIR\n");
while (self->redir[++i])
ft_debug("subsh_redir : [%d]%s\n", self->redir[i], self->files[i]);
ft_debug("==== SUBSH DONE\n\n");
// free(cutted);
}