diff --git a/Makefile b/Makefile index c3fac18..56cbe61 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: marde-vr +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/07/28 00:35:01 by tomoron #+# #+# # -# Updated: 2024/04/18 23:06:00 by marde-vr ### ########.fr # +# Updated: 2024/04/19 20:50:56 by tomoron ### ########.fr # # # # **************************************************************************** # @@ -16,7 +16,6 @@ SRCS_RAW = main.c\ cd.c\ lst_env.c\ lst_token.c\ - exec.c\ exit.c\ is_fd_open.c\ echo.c\ diff --git a/srcs/exec_bonus.c b/srcs/exec_bonus.c index ee1c0a5..1887ebe 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/04/19 18:49:33 by marde-vr ### ########.fr */ +/* Updated: 2024/04/19 20:50:11 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ @@ -125,6 +125,8 @@ int get_cmd_count(t_cmd *cmds) int nb; nb = 0; + while(cmds && (is_output_type(cmds) || is_input_type(cmds))) + cmds=cmds->next; while (cmds && !is_operand_type(cmds)) { if (is_cmd_type(cmds))