diff options
Diffstat (limited to 'src/eval')
| -rw-r--r-- | src/eval/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval/eval.c b/src/eval/eval.c index c90618c..8c1e509 100644 --- a/src/eval/eval.c +++ b/src/eval/eval.c @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/01 17:05:21 by charles #+# #+# */ -/* Updated: 2020/04/01 17:09:36 by charles ### ########.fr */ +/* Updated: 2020/04/01 23:15:16 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -51,11 +51,11 @@ static int eval_cmd(t_eval_state *state, t_cmd *cmd) char *exec_path; bool is_builtin; - is_builtin = builtin_check_exec_name(cmd->argv[0]); + is_builtin = builtin_check_exec_name(cmd->argv[0]); // no fork if builtin if (!is_builtin) { if ((exec_path = exec_search_path(state->path, - ft_htget(state->env, "PATH"), cmd->argv[0])) == NULL) + env_search(state->env, "PATH"), cmd->argv[0])) == NULL) return (-1); } pipe_setup_parent(cmd, state->pipe_in, state->pipe_out); |
