fixed heredoc expansion

This commit is contained in:
marcnava-42cursus
2026-02-14 14:37:56 +01:00
parent 001709139b
commit c1e622947d
4 changed files with 22 additions and 11 deletions

View File

@@ -96,14 +96,12 @@ static bool expand_redirections(
{
t_redirection *redirection;
char *expanded;
bool expand_vars;
while (redirections != NULL)
{
redirection = (t_redirection *)redirections->content;
expand_vars = (redirection->type != TOKEN_HEREDOC);
expanded = parser_expand_word(redirection->target, minishell,
expand_vars);
true);
if (expanded == NULL)
return (false);
free(redirection->target);