From 8d3d25e2fbd912d4d1589a74c0bf0a3ba0b50025 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 3 Sep 2020 19:42:11 +0200 Subject: Next time --- src/p_args_quotes.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/p_args_quotes.c b/src/p_args_quotes.c index 3290a01..d0ade4f 100644 --- a/src/p_args_quotes.c +++ b/src/p_args_quotes.c @@ -37,10 +37,15 @@ static void while ((ptr = ft_strchr(ptr, C_DQUOTE)) != NULL) { if (*(ptr - 1) == C_BACKSLASH && *(ptr - 2) != C_BACKSLASH) + { ptr++; + } else + { ft_memmove(word + (ptr - word), ptr + 1, ft_strlen(ptr + 1) + 1); + } } + /* TODO: subst various dquotes chars */ } void -- cgit v1.2.3