_
This commit is contained in:
parent
0b56e95868
commit
b502364a67
@ -6,7 +6,7 @@
|
|||||||
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/02/14 14:27:08 by cchauvet #+# #+# */
|
/* Created: 2023/02/14 14:27:08 by cchauvet #+# #+# */
|
||||||
/* Updated: 2023/04/04 13:38:27 by erey-bet ### ########.fr */
|
/* Updated: 2023/04/14 19:12:10 by erey-bet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -30,6 +30,8 @@ void print_export(t_list **env, int fd)
|
|||||||
|
|
||||||
current = *env;
|
current = *env;
|
||||||
while (current->next != NULL)
|
while (current->next != NULL)
|
||||||
|
{
|
||||||
|
if (ft_strcmp(((t_env *)(current->content))->key, "_"))
|
||||||
{
|
{
|
||||||
write(fd, "declare -x ", 11);
|
write(fd, "declare -x ", 11);
|
||||||
ft_putstr_fd(((t_env *)(current->content))->key, fd);
|
ft_putstr_fd(((t_env *)(current->content))->key, fd);
|
||||||
@ -42,6 +44,7 @@ void print_export(t_list **env, int fd)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
write(fd, "\n", 2);
|
write(fd, "\n", 2);
|
||||||
|
}
|
||||||
current = current->next;
|
current = current->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user