Les mendarines Lecler, en vrai ça va, Camille est aigris mais propre, en tout cas hâte Nathan se lève
This commit is contained in:
@ -19,7 +19,7 @@ int print_env(t_list **env, int fd)
|
||||
current = *env;
|
||||
while (current->next != NULL)
|
||||
{
|
||||
if (((t_env *)(current->content))->original)
|
||||
if (((t_env *)(current->content))->value)
|
||||
{
|
||||
ft_putstr_fd(((t_env *)(current->content))->key, fd);
|
||||
ft_putstr_fd("=", fd);
|
||||
|
@ -37,7 +37,7 @@ int ft_exit(char **args)
|
||||
if (err == 1)
|
||||
return (error(err, "exit: numeric argument required", args[0]));
|
||||
if (args[1] != NULL)
|
||||
return (error(1, "exit: too many arguments", NULL));
|
||||
return (error(-1, "exit: too many arguments", NULL));
|
||||
if (err > 0)
|
||||
return (error(err, "exit: numeric argument required", args[0]));
|
||||
write(1, "exit\n", 6);
|
||||
|
Reference in New Issue
Block a user