diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-05 14:48:49 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-05 14:48:49 +0200 |
commit | 3976118a6e9acd035d20ef79d92632ecb962814e (patch) | |
tree | fdcf1e85b2e4c492c9955299f6e0a2e24d5272c8 /src/p_args_quotes.c | |
parent | This is all wrong (diff) | |
download | 42-minishell-3976118a6e9acd035d20ef79d92632ecb962814e.tar.gz 42-minishell-3976118a6e9acd035d20ef79d92632ecb962814e.tar.bz2 42-minishell-3976118a6e9acd035d20ef79d92632ecb962814e.tar.xz 42-minishell-3976118a6e9acd035d20ef79d92632ecb962814e.tar.zst 42-minishell-3976118a6e9acd035d20ef79d92632ecb962814e.zip |
Rewrite in progress
Diffstat (limited to '')
-rw-r--r-- | src/p_args_quotes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/p_args_quotes.c b/src/p_args_quotes.c index 6ecbb90..e6fdd92 100644 --- a/src/p_args_quotes.c +++ b/src/p_args_quotes.c @@ -37,10 +37,10 @@ static void { if (ptr - word == 0) ft_memmove(word, word + 1, ft_strlen(word)); - else if (ptr - word == 1 && *(ptr - 1) == C_BACKSLASH) + else if (ptr - word == 1 && *(ptr - 1) == C_BS) ptr++; - else if (ptr - word > 1 && *(ptr - 1) == C_BACKSLASH && - *(ptr - 2) != C_BACKSLASH) + else if (ptr - word > 1 && *(ptr - 1) == C_BS && + *(ptr - 2) != C_BS) ptr++; else ft_memmove(word + (ptr - word), ptr + 1, ft_strlen(ptr + 1) + 1); |