To: vim_dev@googlegroups.com Subject: Patch 9.0.0743 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.0743 Problem: Starting cscope on Unix does not quote the arguments correctly. (Gary Johnson) Solution: Move the final quote after the arguments. Files: src/if_cscope.c *** ../vim-9.0.0742/src/if_cscope.c 2022-10-01 20:17:13.820291832 +0100 --- src/if_cscope.c 2022-10-13 10:42:26.947402744 +0100 *************** *** 954,960 **** // run the cscope command #ifdef UNIX ! vim_snprintf(cmd, cmdlen, "/bin/sh -c \"exec %s -dl -f %s\"", prog, csinfo[i].fname); #else vim_snprintf(cmd, cmdlen, "%s -dl -f %s", prog, csinfo[i].fname); --- 954,960 ---- // run the cscope command #ifdef UNIX ! vim_snprintf(cmd, cmdlen, "/bin/sh -c \"exec %s -dl -f %s", prog, csinfo[i].fname); #else vim_snprintf(cmd, cmdlen, "%s -dl -f %s", prog, csinfo[i].fname); *************** *** 970,975 **** --- 970,978 ---- vim_snprintf(cmd + len, cmdlen - len, " %s", csinfo[i].flags); } # ifdef UNIX + // terminate the -c command argument + STRCAT(cmd, "\""); + // on Win32 we still need prog vim_free(prog); # endif *** ../vim-9.0.0742/src/version.c 2022-10-13 16:12:51.748207004 +0100 --- src/version.c 2022-10-13 16:32:58.966169118 +0100 *************** *** 701,702 **** --- 701,704 ---- { /* Add new patch number below this line */ + /**/ + 743, /**/ -- Did you ever stop to think... and forget to start again? -- Steven Wright /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///