|
|
@ -6,7 +6,7 @@ |
|
|
|
/* By: mea <mea@student.42.fr> +#+ +:+ +#+ */ |
|
|
|
/* +#+#+#+#+#+ +#+ */ |
|
|
|
/* Created: 2022/05/03 11:48:16 by narnaud #+# #+# */ |
|
|
|
/* Updated: 2022/05/17 16:28:32 by narnaud ### ########.fr */ |
|
|
|
/* Updated: 2022/05/17 17:26:25 by narnaud ### ########.fr */ |
|
|
|
/* */ |
|
|
|
/* ************************************************************************** */ |
|
|
|
|
|
|
@ -22,7 +22,7 @@ int call_builtin(t_datas *datas, t_command *cmd) |
|
|
|
else if (ft_strncmp(cmd->argv[0], "pwd", 4) == 0) |
|
|
|
return (ft_pwd(cmd)); |
|
|
|
else if (ft_strncmp(cmd->argv[0], "cd", 3) == 0) |
|
|
|
return (ft_cd(cmd)); |
|
|
|
return (ft_cd(datas, cmd)); |
|
|
|
else if (ft_strncmp(cmd->argv[0], "export", 7) == 0) |
|
|
|
return (ft_export(datas, cmd)); |
|
|
|
else if (ft_strncmp(cmd->argv[0], "unset", 6) == 0) |
|
|
|