fix: heredoc will not have history
This commit is contained in:
parent
7bec120312
commit
fa37938073
@ -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("> ");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user