This commit is contained in:
2024-03-28 14:44:58 +01:00
parent db934be785
commit d07a954adf
18 changed files with 182 additions and 115 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:17:25 by marde-vr #+# #+# */
/* Updated: 2024/03/27 15:00:06 by tomoron ### ########.fr */
/* Updated: 2024/03/28 13:18:35 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -54,10 +54,10 @@ void execute_command(t_msh *msh, char **cmd_args, int i)
void child(t_msh *msh, char **cmd_args, int i)
{
if ((msh->in_type != ARG && msh->in_type != PIPE)
|| (msh->in_type == PIPE && i > 0))
if ((msh->in_type != ARG/* && msh->in_type != PIPE*/)
|| (/*msh->in_type == PIPE &&*/ i > 0))
redirect_input(msh, i);
if (msh->out_type == PIPE || msh->out_type == RED_O
if (/*msh->out_type == PIPE ||*/ msh->out_type == RED_O
|| msh->out_type == RED_O_APP)
redirect_output(msh, i);
close_pipe_fds(msh, i);