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