From ab31b8314736057b0f3072f682da020b3b2e18aa Mon Sep 17 00:00:00 2001 From: Adam Joly Date: Mon, 15 Jul 2024 12:36:05 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20fix=20e?= =?UTF-8?q?nv=20in=20exec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/execution.h | 4 ++-- src/exec/exec_split_cmd.c | 4 +++- src/exec/format_quotes.c | 9 ++++----- src/main.c | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/include/execution.h b/include/execution.h index 8265582..70ef247 100644 --- a/include/execution.h +++ b/include/execution.h @@ -6,7 +6,7 @@ /* By: mmoussou argv[i]) { cmd->argv[i] = format_quotes_string(cmd->argv[i]); - cmd->argv[i] = env_var_replace(cmd->argv[i], env); i++; } return (0); } -int format_quotes(t_list *list_cmd, t_env *env) +int format_quotes(t_list *list_cmd) { if (!list_cmd) return (0); while (list_cmd) { - if (format_quotes_cmd(list_cmd->content, env)) + if (format_quotes_cmd(list_cmd->content)) return (-1); list_cmd = list_cmd->next; } diff --git a/src/main.c b/src/main.c index 424e8f0..8ee3f7d 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: mmoussou