diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-14 20:48:50 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-14 21:35:51 +0200 |
| commit | a2a51b77a5534978f30f2788f7ed9cbe4fda3089 (patch) | |
| tree | 628d23cfbe2f1badc5e5fac1a647fd40f10d0fc9 /src/eval/eval.c | |
| parent | 3693acaff9fbf3f34dc2907e95dd221d5a8bc9e4 (diff) | |
| download | minishell-a2a51b77a5534978f30f2788f7ed9cbe4fda3089.tar.gz minishell-a2a51b77a5534978f30f2788f7ed9cbe4fda3089.tar.bz2 minishell-a2a51b77a5534978f30f2788f7ed9cbe4fda3089.zip | |
Removing path hash table, replacing it by brute force search
Diffstat (limited to 'src/eval/eval.c')
| -rw-r--r-- | src/eval/eval.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/eval/eval.c b/src/eval/eval.c index 351c870..ee5c009 100644 --- a/src/eval/eval.c +++ b/src/eval/eval.c @@ -6,7 +6,7 @@ /* By: charles <me@cacharle.xyz> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/09/13 20:38:06 by charles #+# #+# */ -/* Updated: 2020/09/14 16:49:31 by charles ### ########.fr */ +/* Updated: 2020/09/14 19:39:33 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -62,13 +62,13 @@ int fork_wrap( ** \return The last command status or EVAL_FATAL on error */ -int eval(int fds[2], t_env env, t_path path, t_ast *ast, pid_t *child_pid) +int eval(int fds[2], t_env env, t_ast *ast, pid_t *child_pid) { if (ast->tag == AST_PARENT) - return (eval_parenthesis(fds, env, path, ast)); + return (eval_parenthesis(fds, env, ast)); if (ast->tag == AST_OP) - return (eval_operation(fds, env, path, ast)); + return (eval_operation(fds, env, ast)); if (ast->tag == AST_CMD) - return (eval_cmd(fds, env, path, ast, child_pid)); + return (eval_cmd(fds, env, ast, child_pid)); return (EVAL_FATAL); } |
