aboutsummaryrefslogtreecommitdiff
path: root/src/eval/op.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-06-19 14:38:15 +0200
committerCharles <sircharlesaze@gmail.com>2020-06-19 17:53:28 +0200
commite085451ec45c0551c80989a7d49b0e0deb4b9586 (patch)
tree0ecddd9b145318eaa84c6de2f9c251a6e2a0e195 /src/eval/op.c
parent831cc03ff6c01fb78d77629b7a8f2a75d9e9f75a (diff)
downloadminishell-e085451ec45c0551c80989a7d49b0e0deb4b9586.tar.gz
minishell-e085451ec45c0551c80989a7d49b0e0deb4b9586.tar.bz2
minishell-e085451ec45c0551c80989a7d49b0e0deb4b9586.zip
Parenthesis working, Added getline loop in main
Diffstat (limited to 'src/eval/op.c')
-rw-r--r--src/eval/op.c6
1 files changed, 3 insertions, 3 deletions
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 <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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, &param, 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));