l'execution marche (un petit peu) ( je crois)

This commit is contained in:
2024-04-03 17:47:21 +02:00
parent 4c9941a5d6
commit babcc2ebdf
21 changed files with 190 additions and 110 deletions

6
srcs/export.c Normal file → Executable file
View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/18 18:29:20 by marde-vr #+# #+# */
/* Updated: 2024/04/02 02:16:18 by tomoron ### ########.fr */
/* Updated: 2024/04/03 15:45:32 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -44,7 +44,7 @@ int ft_export(t_msh *msh)
char *value;
int len;
cmd = msh->cmds;
cmd = msh->tokens;
if (cmd && cmd->next)
print_env_declare(msh->env);
if (cmd && cmd->next && !cmd->next->next)
@ -95,7 +95,7 @@ int ft_unset(t_msh *msh)
{
t_token *cmd;
cmd = msh->cmds;
cmd = msh->tokens;
if (cmd)
cmd = cmd->next;
while (cmd)