From: Lukas Jiriste Date: Thu, 1 Aug 2024 11:48:15 +0000 (+0200) Subject: Allow execve to run X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=b27ba79079e738c67acb19e7190810c643e49491;p=42%2Fminishell.git Allow execve to run This is done to test the implementation so far. Piping, redirections and proper environment variables passing has to e implemented. --- diff --git a/src/execution.c b/src/execution.c index fbaae4b..428d66a 100644 --- a/src/execution.c +++ b/src/execution.c @@ -688,8 +688,7 @@ int ex_fields(char **fields, t_vec *assignments, const t_vec *redirections, t_ex path = find_exe(fields[0], env); if (!path) return (1); - pid = -1; - //pid = fork(); + pid = fork(); if (pid == 0) { dup_pipes(env);