feature: add cd built-in

This commit is contained in:
Tanguy Maze
2019-11-10 21:45:56 +01:00
parent e89ccb64b2
commit 4123c5dca3
9 changed files with 253 additions and 83 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/20 14:42:01 by tmaze #+# #+# */
/* Updated: 2019/10/17 10:58:23 by tmaze ### ########.fr */
/* Updated: 2019/11/10 15:52:09 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -29,7 +29,7 @@ int cmd_unsetenv(char **argv, t_env **env)
{
tmp = *it;
*it = tmp->next;
lstdelelem(&tmp);
ft_envdelelem(&tmp);
return (0);
}
it = &((*it)->next);