From aba5e2f28b78ff84c8e34fae27954b696469e57b Mon Sep 17 00:00:00 2001 From: Quinten Mennen Date: Tue, 25 Feb 2025 21:00:29 +0100 Subject: [PATCH] some todos --- src/redirect/redirect_get_inputs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/redirect/redirect_get_inputs.c b/src/redirect/redirect_get_inputs.c index 705ac5e..f68d9af 100644 --- a/src/redirect/redirect_get_inputs.c +++ b/src/redirect/redirect_get_inputs.c @@ -18,14 +18,13 @@ static void process_heredoc(t_minishell *ms, t_token *heredoc, t_token *delim) int fd; fd = open(".ms_heredoc", O_WRONLY | O_CREAT | O_TRUNC, 0644); - if (fd < 0) + if (fd < 0) //TODO: Will this work? return ; - while (TRUE) { - line = readline("heredoc>"); - if ((*line && ft_strcmp(line, delim->value) == 0) || !line) + line = readline(">"); + if ((*line && ft_strcmp(line, delim->value) == 0) || !line) //TODO: What if not line? break ; if (!*line) ft_putendl_fd("", fd);