This commit is contained in:
mdev9
2024-04-24 14:06:52 +02:00
parent 285a99b6a9
commit 6a05ea29a2
4 changed files with 19 additions and 12 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/02 21:59:20 by tomoron #+# #+# */
/* Updated: 2024/04/24 13:07:14 by tomoron ### ########.fr */
/* Updated: 2024/04/24 13:34:44 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -77,13 +77,13 @@ t_env *add_shlvl(t_env *env)
char *tmp;
tmp = ft_get_env(env, "SHLVL");
if(!tmp)
if (!tmp)
nb = 0;
else
nb = ft_atoi(tmp);
nb++;
env = export_set_env(env, ft_strdup("SHLVL"), ft_itoa(nb), 0);
return(env);
return (env);
}
int init_minishell(t_msh **msh, int argc, char **argv, char **envp)