modifs in minishell_tests et unset

This commit is contained in:
hugogogo
2021-12-19 10:52:48 +01:00
parent 7dcf48dd78
commit 5edae3c86a
2 changed files with 4 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/05 17:05:05 by lperrey #+# #+# */
/* Updated: 2021/12/05 18:14:28 by lperrey ### ########.fr */
/* Updated: 2021/12/18 13:43:22 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -27,6 +27,8 @@ int builtin_unset(int argc, char *argv[], t_all *c)
{
if (unset_env_var(argv[i]) == EXIT_FAILURE)
exit_value = EXIT_FAILURE;
if (ft_strncmp(argv[i], "PATH", 4 + 1) == 0)
c->path = retrieve_path();
i++;
}
return (exit_value);