This commit is contained in:
2024-04-07 18:04:13 +02:00
parent 2bfd801ba3
commit 3a7bbac5cb
4 changed files with 35 additions and 23 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/28 13:50:14 by tomoron #+# #+# */
/* Updated: 2024/04/04 13:30:31 by tomoron ### ########.fr */
/* Updated: 2024/04/07 17:47:44 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -56,6 +56,8 @@ void exec_command_bonus(t_msh *msh, char *cmd_str)
print_msh_struct(msh); // debug
print_parsed_token(msh->tokens); // debug
exec_commands(msh);
msh->in_fd = 0;
msh->out_fd = 0;
}
while (cmds && (is_cmd_type(cmds) || cmds->cmd_type == PIPE
|| is_output_type(cmds) || is_input_type(cmds)))