ast bigest fix + norm

This commit is contained in:
gazhonsepaskwa
2025-02-15 13:43:26 +01:00
parent d9687a8e3a
commit 07cf3a7066
11 changed files with 70 additions and 54 deletions

View File

@@ -12,12 +12,12 @@
#include "../../includes/minishell.h"
int is_append(char *str)
int is_append(char *str)
{
if (*(ft_strchr(str, '=') - 1) == '+')
return (1);
return (1);
else
return (0);
return (0);
}
void set_new_export(char *str, t_ast_n *node)
@@ -37,5 +37,4 @@ void set_new_export(char *str, t_ast_n *node)
}
else
set_var_env(str, NULL, node->msh);
}