summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/p_args_quotes.c5
1 files changed, 5 insertions, 0 deletions
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