summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-03 19:42:11 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-03 19:42:11 +0200
commit8d3d25e2fbd912d4d1589a74c0bf0a3ba0b50025 (patch)
treed81eedf1c72e4788caec49dd1f258390c2a7fb18
parentPourquoi je suis né idiot (diff)
download42-minishell-8d3d25e2fbd912d4d1589a74c0bf0a3ba0b50025.tar.gz
42-minishell-8d3d25e2fbd912d4d1589a74c0bf0a3ba0b50025.tar.bz2
42-minishell-8d3d25e2fbd912d4d1589a74c0bf0a3ba0b50025.tar.xz
42-minishell-8d3d25e2fbd912d4d1589a74c0bf0a3ba0b50025.tar.zst
42-minishell-8d3d25e2fbd912d4d1589a74c0bf0a3ba0b50025.zip
Next time
-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