42-archive/42sh/src/exec/exec_pipe.c
2017-03-20 16:27:46 +01:00

24 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* exec_pipe.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/27 21:13:23 by jhalford #+# #+# */
/* Updated: 2017/03/20 15:42:40 by gwojda ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int exec_pipe(t_btree **ast)
{
t_exec *exec;
exec = &data_singleton()->exec;
push(&exec->op_stack, TK_PIPE);
ft_exec(&(*ast)->left);
ft_exec(&(*ast)->right);
return (0);
}