Skip to content

Commit a86f14a

Browse files
committed
patch 7.4.1461
Problem: When starting job on MS-Windows all parts of the command are put in quotes. Solution: Only use quotes when needed. (Yasuhiro Matsumoto)
1 parent fdcc9af commit a86f14a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/eval.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15137,7 +15137,8 @@ f_job_start(typval_T *argvars UNUSED, typval_T *rettv)
1513715137
#ifdef USE_ARGV
1513815138
argv[argc++] = (char *)s;
1513915139
#else
15140-
if (li != l->lv_first)
15140+
/* Only escape when needed, double quotes are not always allowed. */
15141+
if (li != l->lv_first && vim_strpbrk(s, (char_u *)" \t\"") != NULL)
1514115142
{
1514215143
s = vim_strsave_shellescape(s, FALSE, TRUE);
1514315144
if (s == NULL)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1461,
746748
/**/
747749
1460,
748750
/**/

0 commit comments

Comments
 (0)