/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* exec_command.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/14 17:28:14 by jhalford #+# #+# */ /* Updated: 2016/11/28 18:34:13 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #include "exec.h" int exec_command(t_btree *ast, t_data *data) { t_astnode *node; node = ast->item; ft_putstr_fd("befor exec: ", 2); ft_sstrprint_fd(2, ((t_astnode*)ast->item)->u_data.sstr, ','); ft_putchar_fd('\n', 2); ft_cmd_process(node->u_data.sstr, data); ft_putstr_fd("after exec\n", 2); return (0); }