1
0
forked from aniani/vim

patch 8.1.0464: MS-Windows: job_info() has cmd without backslashes

Problem:    MS-Windows: job_info() has cmd without backslashes. (Daniel
            Hahler)
Solution:   Use rem_backslash(). (closes #3517, closes #3404)
This commit is contained in:
Bram Moolenaar
2018-10-07 21:36:11 +02:00
parent 798184cc67
commit 1df2fa47b4
3 changed files with 22 additions and 4 deletions

View File

@@ -6458,14 +6458,14 @@ mch_parse_cmd(char_u *cmd, int use_shcf, char ***argv, int *argc)
while (*p != NUL && (inquote || (*p != ' ' && *p != TAB)))
{
if (p[0] == '"')
/* quotes surrounding an argument and are dropped */
// quotes surrounding an argument and are dropped
inquote = !inquote;
else
{
if (p[0] == '\\' && p[1] != NUL)
if (rem_backslash(p))
{
/* First pass: skip over "\ " and "\"".
* Second pass: Remove the backslash. */
// First pass: skip over "\ " and "\"".
// Second pass: Remove the backslash.
++p;
}
if (i == 1)