some todos

This commit is contained in:
Quinten Mennen 2025-02-25 21:00:29 +01:00
parent 40c2080447
commit aba5e2f28b

View File

@ -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);