mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.0743: starting cscope on Unix does not quote the arguments right
Problem: Starting cscope on Unix does not quote the arguments correctly. (Gary Johnson) Solution: Move the final quote after the arguments.
This commit is contained in:
@@ -954,7 +954,7 @@ err_closing:
|
|||||||
|
|
||||||
// run the cscope command
|
// run the cscope command
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
vim_snprintf(cmd, cmdlen, "/bin/sh -c \"exec %s -dl -f %s\"",
|
vim_snprintf(cmd, cmdlen, "/bin/sh -c \"exec %s -dl -f %s",
|
||||||
prog, csinfo[i].fname);
|
prog, csinfo[i].fname);
|
||||||
#else
|
#else
|
||||||
vim_snprintf(cmd, cmdlen, "%s -dl -f %s", prog, csinfo[i].fname);
|
vim_snprintf(cmd, cmdlen, "%s -dl -f %s", prog, csinfo[i].fname);
|
||||||
@@ -970,6 +970,9 @@ err_closing:
|
|||||||
vim_snprintf(cmd + len, cmdlen - len, " %s", csinfo[i].flags);
|
vim_snprintf(cmd + len, cmdlen - len, " %s", csinfo[i].flags);
|
||||||
}
|
}
|
||||||
# ifdef UNIX
|
# ifdef UNIX
|
||||||
|
// terminate the -c command argument
|
||||||
|
STRCAT(cmd, "\"");
|
||||||
|
|
||||||
// on Win32 we still need prog
|
// on Win32 we still need prog
|
||||||
vim_free(prog);
|
vim_free(prog);
|
||||||
# endif
|
# endif
|
||||||
|
@@ -699,6 +699,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
743,
|
||||||
/**/
|
/**/
|
||||||
742,
|
742,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user