fix: heredoc will not have history

This commit is contained in:
Camille Chauvet 2023-02-17 14:40:57 +01:00
parent 7bec120312
commit fa37938073

View File

@ -1,5 +1,4 @@
#include "minishell.h" #include "minishell.h"
#include <readline/history.h>
int ft_heredoc(char *stop) int ft_heredoc(char *stop)
{ {
@ -16,7 +15,6 @@ int ft_heredoc(char *stop)
break ; break ;
} }
ft_putstr_fd(line, fds[1]); ft_putstr_fd(line, fds[1]);
add_history(line);
free(line); free(line);
line = readline("> "); line = readline("> ");
} }