fix: use own echo
This commit is contained in:
parent
4c45a2c603
commit
0ece156b97
BIN
.nfs00000000098c85f700000036
Executable file
BIN
.nfs00000000098c85f700000036
Executable file
Binary file not shown.
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user