export builtin

This commit is contained in:
LuckyLaszlo
2021-12-04 18:14:24 +01:00
parent 2eed0f2d45
commit 27c00a78a0
4 changed files with 109 additions and 23 deletions

View File

@@ -11,7 +11,7 @@ int builtin_unset(int argc, char *argv[], t_all *c)
i = 1;
while (argv[i])
{
env_position = getenv_position(environ, argv[i]);
env_position = ft_getenv_position(argv[i]);
free(environ[env_position]);
while (environ[env_position])
{