redirections WIP

This commit is contained in:
LuckyLaszlo
2021-11-14 11:05:58 +01:00
parent 1e682f796d
commit 66b48dc99d
10 changed files with 223 additions and 262 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/10 23:53:17 by lperrey #+# #+# */
/* Updated: 2021/11/14 04:48:49 by lperrey ### ########.fr */
/* Updated: 2021/11/14 08:26:32 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -21,6 +21,7 @@ int free_exit(t_all *c, int exit_status)
ft_free_cmd_arr(c->cmd_arr);
if (c->termios_changed)
tcsetattr(STDIN_FILENO, TCSANOW, &c->ori_termios);
gnl(STDIN_FILENO, NULL, 1);
rl_clear_history();
exit(exit_status);
}