wip (ça compile pas)

This commit is contained in:
2024-04-02 12:32:18 +02:00
parent 68469542ff
commit 5580852791
14 changed files with 155 additions and 184 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/04/01 20:09:14 by marde-vr ### ########.fr */
/* Updated: 2024/04/02 02:07:25 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -48,9 +48,10 @@ void execute_command(t_msh *msh, char **cmd_args)
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))
redirect_input(msh);
// flemme
//if ((msh->in_type != ARG /*&& msh->in_type != PIPE*/)
// || (/*msh->in_type == PIPE &&*/ i > 0))
// redirect_input(msh);
if (/*msh->out_type == PIPE ||*/ msh->out_type == RED_O
|| msh->out_type == RED_O_APP)
redirect_output(msh, i);