From 8769b5d25f3015030ad4930bd9836417387252c0 Mon Sep 17 00:00:00 2001 From: yosyo Date: Thu, 4 Jul 2024 12:08:27 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20fixed?= =?UTF-8?q?=20some=20things.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/exec/format_quotes.c | 12 ++++++------ src/main.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/exec/format_quotes.c b/src/exec/format_quotes.c index b92a452..367bd35 100644 --- a/src/exec/format_quotes.c +++ b/src/exec/format_quotes.c @@ -6,7 +6,7 @@ /* By: mmoussou cmd); + //printf("before : %s\n", cmd->cmd); new_cmd = format_quotes_string(cmd->cmd); if (!new_cmd) return (-1); free(cmd->cmd); cmd->cmd = new_cmd; - printf("after : %s\n", cmd->cmd); + //printf("after : %s\n", cmd->cmd); i = 0; while (cmd->argv[i]) { - printf("before : %s\n", cmd->argv[i]); + //printf("before : %s\n", cmd->argv[i]); new_cmd = format_quotes_string(cmd->argv[i]); if (!new_cmd) return (-1); free(cmd->argv[i]); cmd->argv[i] = new_cmd; - printf("after : %s\n", cmd->argv[i]); + //printf("after : %s\n", cmd->argv[i]); i++; } return (0); @@ -144,7 +144,7 @@ int format_quotes_cmd(t_cmd *cmd) int format_quotes(t_list *list_cmd) { - printf("aled\n"); + //printf("aled\n"); if (!list_cmd) return (0); while (list_cmd) diff --git a/src/main.c b/src/main.c index 17b5ff7..2fb3685 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: mmoussou content))->redirection)) + if (check_argv(((t_token *)(piped->content))->redirection)) continue ; cmd_list = get_cmd_list(piped); format_quotes(cmd_list);