This commit is contained in:
hugogogo
2021-11-25 21:33:46 +01:00
parent ef3e91be13
commit ac11eee947
4 changed files with 14 additions and 19 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 09:22:12 by lperrey #+# #+# */
/* Updated: 2021/11/25 18:57:59 by hulamy ### ########.fr */
/* Updated: 2021/11/25 19:47:00 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -25,7 +25,7 @@ int init(t_all *c, char **environ)
// if (!c->envp)
// return (ft_reti_perror(0, "ft_dup_2d_char_arr(envp) error"));
//print_matrix(c->envp, "\n --- \n"); // TEST WIP
//c->path = retrieve_path(c->envp); // No return check. Its intended. PATH is optional
// c->path = retrieve_path(c->envp); // No return check. Its intended. PATH is optional
c->path = retrieve_path(environ); // No return check. Its intended. PATH is optional
c->prompt_base = init_prompt_base();
if (!c->prompt_base)