From a77d92de5ded1606129af99b700e580cc126df69 Mon Sep 17 00:00:00 2001 From: y-syo Date: Wed, 14 Aug 2024 10:24:52 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix(prints):?= =?UTF-8?q?=20fixed=20prints=20to=20error=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/exec/exec_split_cmd.c | 6 +++--- src/exec/utils_exec.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/exec/exec_split_cmd.c b/src/exec/exec_split_cmd.c index 9781494..b974625 100644 --- a/src/exec/exec_split_cmd.c +++ b/src/exec/exec_split_cmd.c @@ -6,7 +6,7 @@ /* By: mmoussou cmd, input)) { if (exec.status == -1) - ft_printf("%s%s\n", ERROR_NO_CMD, input, get_exit_code(127)); + ft_printf_fd(2, "%s%s\n", ERROR_NO_CMD, input, get_exit_code(127)); free(input); return (-1); } @@ -67,7 +67,7 @@ int exec_single_cmd(t_cmd *cmd, char **env, t_env *env_t, int pipe_fd[2]) if (exec.status == -1) get_exit_code(127); if (exec.status == -1) - printf("minishell : command not found: %s\n", input); + ft_printf_fd(2, "minishell : command not found: %s\n", input); free(input); return (-1); } diff --git a/src/exec/utils_exec.c b/src/exec/utils_exec.c index 10aeb89..859d928 100644 --- a/src/exec/utils_exec.c +++ b/src/exec/utils_exec.c @@ -6,7 +6,7 @@ /* By: mmoussou