mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 11:26:51 +01:00
「🏗️」 wip(main.c): changed main to execute commands
This commit is contained in:
12
src/main.c
12
src/main.c
@ -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);
|
||||
|
Reference in New Issue
Block a user