ct kc
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/02/18 18:29:20 by marde-vr #+# #+# */
|
/* Created: 2024/02/18 18:29:20 by marde-vr #+# #+# */
|
||||||
/* Updated: 2024/04/24 13:45:58 by marde-vr ### ########.fr */
|
/* Updated: 2024/04/24 14:41:01 by tomoron ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ t_env *set_env(t_env *env, char *name, char *value, int append)
|
|||||||
}
|
}
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
return (env);
|
return (env_add_back(env, name, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
t_env *export_set_env(t_env *env, char *name, char *value, int append)
|
t_env *export_set_env(t_env *env, char *name, char *value, int append)
|
||||||
@ -58,8 +58,7 @@ t_env *export_set_env(t_env *env, char *name, char *value, int append)
|
|||||||
ft_printf_fd(2, "minishell: malloc failed");
|
ft_printf_fd(2, "minishell: malloc failed");
|
||||||
return (env);
|
return (env);
|
||||||
}
|
}
|
||||||
set_env(env, name, value, append);
|
return (set_env(env, name, value, append));
|
||||||
return (env_add_back(env, name, value));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int ft_export(t_msh *msh, t_token *cmd, t_env *env)
|
int ft_export(t_msh *msh, t_token *cmd, t_env *env)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/03/05 18:15:27 by marde-vr #+# #+# */
|
/* Created: 2024/03/05 18:15:27 by marde-vr #+# #+# */
|
||||||
/* Updated: 2024/04/24 14:04:30 by tomoron ### ########.fr */
|
/* Updated: 2024/04/24 14:41:40 by tomoron ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user