diff --git a/src/exec/exec_split_cmd.c b/src/exec/exec_split_cmd.c index 1e9f5fe..0bcd055 100644 --- a/src/exec/exec_split_cmd.c +++ b/src/exec/exec_split_cmd.c @@ -6,7 +6,7 @@ /* By: mmoussou 4) + exit(0); } else execve(cmd, argv, env); @@ -97,6 +98,10 @@ int exec_single_cmd(t_cmd *cmd, char **env, t_env *env_t, int pipe_fd[2]) printf("minishell : command not found: %s\n", input); return (-1); } + if (is_in_builtins(cmd->cmd) < 5) + { + exec_cmd(cmd->cmd, cmd->argv, env, env_t); + } fork_pid = fork(); if (!fork_pid) {