mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 03:16:51 +01:00
「🔨」 fix: free exit working
This commit is contained in:
@ -6,13 +6,15 @@
|
||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/07/15 12:28:36 by adjoly #+# #+# */
|
||||
/* Updated: 2024/08/01 06:17:16 by mmoussou ### ########.fr */
|
||||
/* Updated: 2024/08/11 11:58:17 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "minishell.h"
|
||||
#include "parsing.h"
|
||||
|
||||
t_list **get_list2(t_list **list);
|
||||
|
||||
void free_exit(t_env *env, char **env_array)
|
||||
{
|
||||
int i;
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */
|
||||
/* Updated: 2024/08/10 13:16:30 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/08/11 11:58:12 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -30,6 +30,7 @@ void __parse(char *rl, t_env *env_l)
|
||||
token = tokenizer(rl, env_l);
|
||||
if (!token)
|
||||
return ;
|
||||
get_list(&token);
|
||||
exec_split_cmd(token, env_l);
|
||||
ft_lstclear(&token, free_cmd);
|
||||
return ;
|
||||
|
Reference in New Issue
Block a user