fix: use own echo

This commit is contained in:
Camille Chauvet 2023-02-21 15:46:21 +01:00
parent 4c45a2c603
commit 0ece156b97
2 changed files with 3 additions and 3 deletions

BIN
.nfs00000000098c85f700000036 Executable file

Binary file not shown.

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/21 12:45:16 by cchauvet #+# #+# */
/* Updated: 2023/02/21 15:31:02 by cchauvet ### ########.fr */
/* Updated: 2023/02/21 15:45:24 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
@ -110,8 +110,8 @@ static int ft_own_cmd(t_list **env, t_cmd *cmd)
return_code = (move_folder(cmd->args[0], cmd->fd_out));
/* if (ft_strcmp(cmd->executable, "unset") == 0) */
/* return_code = (unset(env, cmd->args, cmd->fd_out)); */
/* else if (ft_strcmp(cmd->executable, "echo") == 0) */
/* return_code = (echo(cmd->fd_out, cmd->args + 1)); */
else if (ft_strcmp(cmd->executable, "echo") == 0)
return_code = (echo(cmd->fd_out, cmd->args + 1));
else if (ft_strcmp(cmd->executable, "exit") == 0)
return_code = -2;
if (return_code != -1)