diff --git a/include/builtins.h b/include/builtins.h index ff3b80d..27b35e7 100644 --- a/include/builtins.h +++ b/include/builtins.h @@ -6,7 +6,7 @@ /* By: mmoussou 0) new_line = false; @@ -51,11 +50,11 @@ void ft_echo(char **args, int fd) tmp += __nl_option(args); while (*tmp && tmp) { - ft_putstr_fd(*tmp, fd); + ft_putstr_fd(*tmp, STDOUT_FILENO); tmp++; if (*tmp != NULL) - ft_putchar_fd(' ', fd); + ft_putchar_fd(' ', STDOUT_FILENO); } if (new_line == true) - ft_putchar_fd('\n', fd); + ft_putchar_fd('\n', STDOUT_FILENO); } diff --git a/src/exec/exec_cmd.c b/src/exec/exec_cmd.c index e5c6cbf..b6f6517 100644 --- a/src/exec/exec_cmd.c +++ b/src/exec/exec_cmd.c @@ -6,7 +6,7 @@ /* By: mmoussou argv + 1, cmd->outfile); + ft_echo(cmd->argv + 1); if (i == 2) ft_cd(env_t, (cmd->argv)[1]); if (i == 6)