bonus
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user