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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221013153502.A6E061C0760%40moolenaar.net.

Raspunde prin e-mail lui