From: Lukas Jiriste Date: Fri, 30 Aug 2024 12:43:27 +0000 (+0200) Subject: Set return value to 127 when command is not found X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=eaae514742859a8994be3464b79b454d7461f06b;p=42%2Fminishell.git Set return value to 127 when command is not found --- diff --git a/src/execution.c b/src/execution.c index 447b436..79991d8 100644 --- a/src/execution.c +++ b/src/execution.c @@ -6,7 +6,7 @@ /* By: lnikolov ret_val = 127; return (1); + } pid = fork(); if (pid == 0) {