ast bigest fix + norm
This commit is contained in:
1 parent
d9687a8e3a
commit
07cf3a7066
11 files changed
+70
-54
No files matched your search
@@ -32,7 +32,7 @@ int is_export_valid(char *str)
|
||||
while ((++str) < key_end)
|
||||
{
|
||||
if (!ft_isalnum(*str) && *str != '_')
|
||||
return (0);
|
||||
return (0);
|
||||
}
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user