🏗️」 wip(main.c): changed main to execute commands

This commit is contained in:
yosyo
2024-06-21 09:59:31 +02:00
parent 59964a9248
commit 59a2ce8838

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */
/* Updated: 2024/06/20 14:00:59 by adjoly ### ########.fr */
/* Updated: 2024/06/21 09:33:03 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
@ -89,16 +89,16 @@ int main(int ac, char **av, char **env)
piped = tokenizer(test);
//check_redir(((t_token *)(piped->content))->redirection, av);
cmd_list = get_cmd_list(piped, &env_l);
//exec_split_cmd(cmd_list, &env_l);
exec_split_cmd(cmd_list, &env_l);
/*while (cmd_list)
{
cmd = cmd_list->content;
cmd_list = cmd_list->next;
}*/
print_cmd(cmd_list->content);
//free(test);
//ft_lstclear(&piped, free_token);
//ft_free("a", &lll);
//print_cmd(cmd_list->content);
free(test);
ft_lstclear(&piped, free_token);
ft_free("a", &lll);
}
ft_free("a", &lll);
return (0);