CO-CODE Hugo-Luke

+ last_exit_status set/get functions for here_doc
+ TODO : replace all occurences of last_exit_status
+ **environ fix
+ builtin_unset() fix
This commit is contained in:
LuckyLaszlo
2021-11-26 20:44:29 +01:00
parent 3465354af5
commit 18d430c5cb
13 changed files with 119 additions and 239 deletions

View File

@@ -14,10 +14,12 @@
int free_exit(t_all *c, int exit_status)
{
extern char **environ;
free(c->prompt_base);
free(c->prompt);
ft_lstclear((t_list **)&c->token_list, free);
// ft_free_2d_arr(c->envp);
ft_free_2d_arr(environ);
ft_free_2d_arr(c->path);
free_pipeline(&c->cmd_arr);
//if (c->termios_changed)