feature: add cd built-in
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user