From fa379380735262d882209a4d3ce6fca6f27a102f Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Fri, 17 Feb 2023 14:40:57 +0100 Subject: [PATCH] fix: heredoc will not have history --- heredoc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/heredoc.c b/heredoc.c index df182a4..8b7f2e2 100644 --- a/heredoc.c +++ b/heredoc.c @@ -1,5 +1,4 @@ #include "minishell.h" -#include int ft_heredoc(char *stop) { @@ -16,7 +15,6 @@ int ft_heredoc(char *stop) break ; } ft_putstr_fd(line, fds[1]); - add_history(line); free(line); line = readline("> "); }