From 01496f058756fbcca9356fe9f28fa6877a9718c5 Mon Sep 17 00:00:00 2001 From: tomoron Date: Tue, 7 May 2024 12:37:36 +0200 Subject: [PATCH] =?UTF-8?q?fix=20cat=20<=20missing=20|=20cat=20mais=20?= =?UTF-8?q?=C3=A7a=20a=20probablement=20cass=C3=A9=20autre=20chose?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- srcs/exec_bonus.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/srcs/exec_bonus.c b/srcs/exec_bonus.c index 5ac1781..d0cf393 100755 --- a/srcs/exec_bonus.c +++ b/srcs/exec_bonus.c @@ -6,7 +6,7 @@ /* By: marde-vr +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/03/28 13:50:14 by tomoron #+# #+# */ -/* Updated: 2024/05/06 16:35:37 by tomoron ### ########.fr */ +/* Updated: 2024/05/07 12:36:41 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ @@ -80,11 +80,11 @@ void exec_command(t_msh *msh, int i, int cmd_count) msh->fds[i] = ft_calloc(2, sizeof(int *)); if (!msh->fds[i]) ft_exit(msh, 1); - if (msh->tokens && !cmd_is_builtin(msh, msh->tokens->value) - && msh->in_fd != -1) + if (msh->tokens && !cmd_is_builtin(msh, msh->tokens->value)) +// && msh->in_fd != -1) get_cmd_path(msh); - if (((msh->tokens && msh->tokens->value) || is_parenthesis(msh->cmds)) - && msh->in_fd != -1) + if (((msh->tokens && msh->tokens->value) || is_parenthesis(msh->cmds))) +// && msh->in_fd != -1) exec(msh, get_cmd_args(msh), i, cmd_count); else {