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