update: should have fixed everything
This commit is contained in:
parent
18e6353329
commit
7d3e0a6a49
2 changed files with 8 additions and 10 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/07/26 13:07:12 by rparodi #+# #+# */
|
/* Created: 2024/07/26 13:07:12 by rparodi #+# #+# */
|
||||||
/* Updated: 2024/10/24 22:30:02 by maiboyer ### ########.fr */
|
/* Updated: 2024/10/24 23:04:06 by maiboyer ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -15,8 +15,8 @@
|
||||||
void ast_print_node_file_redirection_heredoc(t_ast_node self)
|
void ast_print_node_file_redirection_heredoc(t_ast_node self)
|
||||||
{
|
{
|
||||||
if (self == NULL || self->kind != AST_HEREDOC_REDIRECTION)
|
if (self == NULL || self->kind != AST_HEREDOC_REDIRECTION)
|
||||||
return;
|
return ;
|
||||||
printf("<<%s", self->data.heredoc_redirection.delimiter);
|
printf("<<%s ", self->data.heredoc_redirection.delimiter);
|
||||||
}
|
}
|
||||||
//{
|
//{
|
||||||
// if (self->data.file_redirection.op == AST_REDIR_HEREDOC)
|
// if (self->data.file_redirection.op == AST_REDIR_HEREDOC)
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/09/14 12:26:51 by maiboyer #+# #+# */
|
/* Created: 2024/09/14 12:26:51 by maiboyer #+# #+# */
|
||||||
/* Updated: 2024/10/24 22:48:26 by maiboyer ### ########.fr */
|
/* Updated: 2024/10/24 23:05:59 by maiboyer ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -47,11 +47,9 @@ t_error _word_split_loop_expand(\
|
||||||
return (NO_ERROR);
|
return (NO_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
t_error _word_split_loop(\
|
t_error _word_split_loop(\
|
||||||
bool do_split, t_expandable_str val, t_vec_str *append, t_string *tmp)
|
bool do_split, t_expandable_str val, t_vec_str *append, t_string *tmp)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (do_split)
|
if (do_split)
|
||||||
return (_word_split_loop_expand(val, append, tmp));
|
return (_word_split_loop_expand(val, append, tmp));
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue