mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-13 16:08:45 +02:00
「✨」 feat: $ working
This commit is contained in:
13
src/main.c
13
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/11 13:37:20 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/06/20 14:00:59 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -87,9 +87,8 @@ int main(int ac, char **av, char **env)
|
||||
if (is_str(test, "exit"))
|
||||
break ;
|
||||
piped = tokenizer(test);
|
||||
check_redir(((t_token *)(piped->content))->redirection, av);
|
||||
ft_putendl_fd(env_var_replace(test, &env_l), STDOUT_FILENO);
|
||||
cmd_list = get_cmd_list(piped);
|
||||
//check_redir(((t_token *)(piped->content))->redirection, av);
|
||||
cmd_list = get_cmd_list(piped, &env_l);
|
||||
//exec_split_cmd(cmd_list, &env_l);
|
||||
/*while (cmd_list)
|
||||
{
|
||||
@ -97,9 +96,9 @@ int main(int ac, char **av, char **env)
|
||||
cmd_list = cmd_list->next;
|
||||
}*/
|
||||
print_cmd(cmd_list->content);
|
||||
free(test);
|
||||
ft_lstclear(&piped, free_token);
|
||||
ft_free("a", &lll);
|
||||
//free(test);
|
||||
//ft_lstclear(&piped, free_token);
|
||||
//ft_free("a", &lll);
|
||||
}
|
||||
ft_free("a", &lll);
|
||||
return (0);
|
||||
|
Reference in New Issue
Block a user