dup de la cmd

This commit is contained in:
gazhonsepaskwa
2025-02-05 09:51:30 +01:00
parent 8834742c1d
commit cb133b6702

View File

@@ -71,7 +71,7 @@ void create_cmd(t_ast_n *self, t_node *lst)
self->redir[0] = _NR;
cmd_args = get_args(lst);
self->args = cmd_args;
self->cmd = cmd_args[0];
self->cmd = ft_strdup(cmd_args[0]);
create_redir(lst, self);
// debug
int i = -1;