From e085451ec45c0551c80989a7d49b0e0deb4b9586 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 19 Jun 2020 14:38:15 +0200 Subject: Parenthesis working, Added getline loop in main --- src/eval/op.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/eval/op.c') diff --git a/src/eval/op.c b/src/eval/op.c index e022fc1..1f85bc1 100644 --- a/src/eval/op.c +++ b/src/eval/op.c @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/06/17 15:27:22 by charles #+# #+# */ -/* Updated: 2020/06/19 13:34:28 by charles ### ########.fr */ +/* Updated: 2020/06/19 17:32:43 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -60,13 +60,13 @@ int eval_parent(int fds[2], t_env env, t_path path, t_ast *ast) param.env = env; param.path = path; ast->tag ^= AST_PARENT; - param.ast = ast; + param.ast = ast->parent_ast; return (fork_wrap(fds, ¶m, wrapped_eval)); } int eval(int fds[2], t_env env, t_path path, t_ast *ast) { - if (ast->tag & AST_PARENT) + if (ast->tag == AST_PARENT) return (eval_parent(fds, env, path, ast)); if (ast->tag == AST_OP) return (eval_op(fds, env, path, ast)); -- cgit